blob: a7e6172111351381c79b9838830db052f8e088e3 [file] [log] [blame]
//PR c++/27821
struct A
{
template<void (A::*)()> struct B {};
void ::foo(); // { dg-error "10:invalid use" }
B<&A::foo> b; // { dg-error "incomplete type|template argument" }
};