[PR c++/81060] ICE with invalid initialzer via lambda
authorNathan Sidwell <nathan@acm.org>
Thu, 16 Nov 2017 12:11:36 +0000 (12:11 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 16 Nov 2017 12:11:36 +0000 (12:11 +0000)
commitc757ad4cf61f982a05cb5f424308ec199aa2923d
treeb6a8e8b5fa835fe7c7f6def7b55f34b44dbfa080
parent81825e283f6cec28db73af9769602b953d683e3e
[PR c++/81060] ICE with invalid initialzer via lambda

https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01323.html
PR c++/81060
* decl.c (xref_tag_1): Push lambda into current scope.
* name-lookup.c (do_pushtag): Don't deal with ts_lambda here.

PR c++81060
* g++.dg/cpp0x/lambda/lambda-template13.C: Avoid undefined
template using local type error.
* g++.dg/cpp0x/pr81060.C: New.

From-SVN: r254817
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template13.C
gcc/testsuite/g++.dg/cpp0x/pr81060.C [new file with mode: 0644]