Closed wfjm closed 5 years ago
The culprit was that automatic return type determination for the getter lambdas was used. This fails when the called method returns a reference of an object. The deduced lambda return type will the object, not a reference. Unfortunately this doesn't lead to a compile time error but to a run time error.
Bottom lime is
std:bind
as method forwarderFixed with commit 6024dce.
tcl commands like
crash with a
SIGSEGV
. Apparently all getters which internally return aconst
reference are affected. Observed withgcc 5.4.0
. Unclear whether this is a coding bug introduced whenboost::bind
was replaced by lambdas (in commit 1620ee3) or a compiler issue.