1 // PR c++/48284 2 // { dg-options -std=c++0x } 3 4 template<typename C> 5 auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" } 6 7 template<typename C> 8 auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" } 9