This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27211] Bogus error "template definition of non-template" when there is no non-template
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2006 11:04:13 -0000
- Subject: [Bug c++/27211] Bogus error "template definition of non-template" when there is no non-template
- References: <bug-27211-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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