blob: 1bc378c14e6772055a416c9fb99883c4068c5fea [file] [log] [blame]
// { dg-do compile }
// Origin: Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
// PR c++/12924
template<typename> struct A {};
template<> struct A<void>
{
template<typename T> void foo()
{
A<T> a;
a.template foo<int>(); // { dg-error "no member" }
}
};
void bar()
{
A<void> a;
a.foo<int>(); // { dg-error "instantiated" }
}