This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12925] Mistaking a bad function declaration for a function call with no return
- From: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Nov 2003 14:00:37 -0000
- Subject: [Bug c++/12925] Mistaking a bad function declaration for a function call with no return
- References: <20031106113805.12925.md@informationsdesign.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12925
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-11-06 14:00 -------
This is fixed in the main trunk by the new parser. It will be
released in the future as GCC 3.4. It produces correct error message:
pr12925.C: In member function `int dar::goo()':
pr12925.C:7: error: cannot declare member `goo::alloc' within `dar'
pr12925.C: In member function `int dar::goo2()':
pr12925.C:8: error: cannot declare member `goo::alloc' within `dar'