[Bug c++/82230] [8 Regression] ICE: in tsubst, at cp/pt.c:13686 when binding lambda to variable inside a generic lambda inside a template member function inside a template class
xerofoify at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 25 16:53:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82230
nik <xerofoify at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xerofoify at gmail dot com
--- Comment #4 from nik <xerofoify at gmail dot com> ---
I have new to the project but after looking at the code in semantics.c that was
changed by that commit pointed out. It seems that a else above this if
statement was removed:
if (containing_function && DECL_TEMPLATE_INFO (context)
&& LAMBDA_FUNCTION_P (containing_function))
which in term means that:
containing_function = NULL_TREE;
is a NULL_TREE I assume that means it points to a nullptr or null pointer.
Therefore we may be passing in a null tree to an incorrect branch due to the
missing else. Seems it your trace, semantics.c is being called so it may be
this. Anybody have any comments?
More information about the Gcc-bugs
mailing list