blob: d793fe4df89ccef29d5f980d3afd60360a01a5e7 (
plain)
1
2
3
4
5
6
7
8
9
|
//PR c++/27821
struct A
{
template<void (A::*)()> struct B {};
void ::foo(); // { dg-error "invalid use" }
B<&A::foo> b; // { dg-error "incomplete type|template argument" }
};
|