Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template12.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/57568 |
2 // { dg-require-effective-target c++11 } | |
3 | |
4 template < class T > | |
5 struct remove_reference | |
6 { typedef int type; }; | |
7 template < class T > | |
8 class X | |
9 { | |
10 enum Q { }; | |
11 bool f () | |
12 { | |
13 Q a; | |
14 [&a]{ | |
15 typename remove_reference < decltype (a) >::type t; | |
16 }; | |
131 | 17 return true; |
111 | 18 } |
19 }; | |
20 template class X< int >; |