[PR c++/81060] ICE with invalid initialzer via lambda
commit6c48fa17f4e5fd63b9373a275afa74c9e5b4fd41
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Nov 2017 12:11:36 +0000 (16 12:11 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Nov 2017 12:11:36 +0000 (16 12:11 +0000)
treeb6a8e8b5fa835fe7c7f6def7b55f34b44dbfa080
parent07d4034c04832a1970307450a2c19421f235c863
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254817 138bc75d-0d04-0410-961f-82ee72b054a4
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]