------- Comment #3 from reichelt at gcc dot gnu dot org 2006-07-19 11:04 ------- Because of Steve's patch for PR28304 we now get the following message for the second testcase:
bug.cc:3: error: no 'void A::foo()' member function declared in class 'A' bug.cc:3: error: no 'void A::foo()' member function declared in class 'A' bug.cc:3: error: declaration of 'void A::foo()' outside of class is not definition bug.cc:3: error: template definition of non-template 'void A::foo()' I.e. the bogus "candidate" part is now gone. :-) Alas we now get a duplicate message right at the beginning. :-( This is tracked in PR 28432. All that remains in this PR is the bogus "template definition of non-template" message. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27211