1 // { dg-do compile { target c++11 } } 2 // PR c++/33838 3 template<typename T> struct A 4 { 5 __decltype (T* foo()); // { dg-error "expected|no arguments|declaration" } 6 }; 7