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