Message ID | 4DC877E0.3020303@oracle.com |
---|---|
State | New |
Headers | show |
Index: g++.dg/cpp0x/pr48522.C =================================================================== --- g++.dg/cpp0x/pr48522.C (revision 0) +++ g++.dg/cpp0x/pr48522.C (revision 0) @@ -0,0 +1,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); +}