summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr48522.C
blob: 1543d8a281dc7a953df2a2184d542050b1f3885d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-options "-std=c++0x" }

template <typename T>
struct Handle
{
    Handle(T& t);
};

template<class T>
struct Class {
    struct Struct {} data;
    void f();
    void g();
};

template<class T>
void Class<T>::f() {
    Handle< decltype((data)) > handle(data);
}

template<class T>
void Class<T>::g() {
    Handle< decltype((data)) > handle(data);
}