gcc/testsuite/g++.dg/cpp0x/sfinae58.C
raw| 1 | // PR c++/71568 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template <typename T> class F : T {}; |
| 5 | template <typename> using void_t = void; |
| 6 | template <class, class = void> struct G; |
| 7 | template <typename T> struct G<T, void_t<decltype(&T::nlog_custom)>> {}; |
| 8 | struct D { |
| 9 | void nlog_custom(); |
| 10 | }; |
| 11 | G<F<D>> g; // { dg-error "incomplete" } |
| 12 |