blob: 5d0f085f433ba43432f50659982b5094203a11ba [file] [log] [blame]
// PR c++/53651
// { dg-do compile { target c++11 } }
template<typename> struct wrap { void bar(); };
template<typename T> auto foo(T* t) -> wrap<T>* { return 0; }
template<typename T>
struct holder : decltype(*foo((T*)0)) // { dg-error "class type" }
{
using decltype(*foo((T*)0))::bar; // { dg-error "is not a class" }
};
holder<int> h;