1 // PR c++/6709 (DR 743)
2 // PR c++/42603 (DR 950)
3 // { dg-options -std=c++0x }
8 struct p { typedef int t; };
9 struct c : decltype(make<p>()) {};
11 decltype(make<p>())::t t;
15 template < typename T >
17 -> typename decltype( x )::type; // ICE on here
19 template < typename T >
20 typename decltype( T{} )::type // ICE on here
23 template < typename T >
25 { typename decltype( x )::type t; } // ICE on here
30 decltype(f())::t t2; // { dg-error "not a class" }
32 struct D: decltype(f()) { }; // { dg-error "not a class" }
34 // { dg-prune-output "expected initializer" }