r269503 - in /branches/gcc-8-branch/gcc: cp/Cha...
jason@gcc.gnu.org
jason@gcc.gnu.org
Fri Mar 8 18:22:00 GMT 2019
Author: jason
Date: Fri Mar 8 18:22:20 2019
New Revision: 269503
URL: https://gcc.gnu.org/viewcvs?rev=269503&root=gcc&view=rev
Log:
PR c++/89422 - ICE with -g and lambda in default arg in template.
Here, we were trying to instantiate the default argument before setting
DECL_FRIEND_CONTEXT, so that the instantiated lambda ended up being treated
as part of the S template, which confused dwarf2out.
* pt.c (tsubst_function_decl): SET_DECL_FRIEND_CONTEXT sooner.
Added:
branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg9.C
Modified:
branches/gcc-8-branch/gcc/cp/ChangeLog
branches/gcc-8-branch/gcc/cp/pt.c
More information about the Gcc-cvs
mailing list