blob: 4d6b323ed64ae830200b6b530bb72d7e890b0f63 [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|convert|member function" }
}
template<bool B>
struct bar
{
void operator()()
{ }
};
};
int main()
{
Dummy<int> d;
d.tester<true> (); // { dg-message "required" }
}