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++/12925] Mistaking a bad function declaration for a function call with no return


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'


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