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