// PR c++/105908 // { dg-do compile { target c++11 } } struct test { template int templated_func(); template auto call_templated_func() -> decltype(templated_func()); }; template auto test::call_templated_func() -> decltype(templated_func()) { return templated_func(); }