gcc/testsuite/g++.dg/cpp0x/trailing16.C
raw| 1 | // PR c++/105908 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | struct test |
| 5 | { |
| 6 | template <typename T> |
| 7 | int templated_func(); |
| 8 | |
| 9 | template <typename T> |
| 10 | auto call_templated_func() -> decltype(templated_func<T>()); |
| 11 | }; |
| 12 | |
| 13 | template <typename T> |
| 14 | auto test::call_templated_func() -> decltype(templated_func<T>()) |
| 15 | { |
| 16 | return templated_func<T>(); |
| 17 | } |