blob: 9b76d1aa65abfffdc45c8bbdd948ac193eecc6e2 [file] [log] [blame]
// PR c++/19004
template<typename T>
struct Dummy
{
void evil()
{
this->template tester<true>();
}
template<bool B>
void tester()
{
bar<evil>()(); // { dg-error "constant" }
}
template<bool B>
struct bar
{
void operator()()
{ }
};
};
int main()
{
Dummy<int> d;
d.tester<true> (); // { dg-error "instantiated" }
}