This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/27211] Bogus error "template definition of non-template" when there is no non-template



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]