blob: bc96159522c93e76cdca2584b114082ed063db65 [file] [log] [blame]
// PR c++/94529
template <class T>
struct foo {
// the issue is const here
void bar(T& foobar) const { foobar = 0; } // { dg-message "candidate" }
};
template <> void
foo<int>::bar(int& foobar) { foobar = 9; } // { dg-error "does not match" }
// { dg-bogus "member function template" "" { target *-*-* } .-1 }