view gcc/testsuite/g++.dg/cpp0x/sfinae58.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/71568
// { dg-do compile { target c++11 } }

template <typename T> class F : T {};
template <typename> using void_t = void;
template <class, class = void> struct G;
template <typename T> struct G<T, void_t<decltype(&T::nlog_custom)>> {};
struct D {
  void nlog_custom();
};
G<F<D>> g;			// { dg-error "incomplete" }