aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template12.C
blob: 635af97d763c70d267232fb6049eeec88d5d261c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/57568
// { dg-require-effective-target c++11 }

template < class T >
struct remove_reference
{ typedef int type; };
template < class T >
class X
{
    enum Q { };
    bool f ()
    {
        Q a;
        [&a]{
            typename remove_reference < decltype (a) >::type t;
        };
    }
};
template class X< int >;