// PR c++/49042 // { dg-options -std=c++0x } template class A { T p; public: template auto f() -> decltype(+p) { } }; int main() { A().f(); }