[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82230 --- Comment #6 from paolo at gcc dot gnu.org --- Author: paolo Date: Wed Oct 11 09:04:29 2017 New Revision: 253631 URL: https://gcc.gnu.org/viewcvs?rev=253631&root=gcc&view=rev Log: 2017-10-11 Paolo Carlini PR c++/82230 * g++.dg/cpp1y/lambda-generic-ice8.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice8.C Modified: trunk/gcc/testsuite/ChangeLog
[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82230 Markus Trippelsdorf changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Markus Trippelsdorf --- Fixed by r253601.
[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82230 nik changed: What|Removed |Added CC||xerofoify at gmail dot com --- Comment #4 from nik --- 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?