[Bug c++/50359] poor error message for an undeclared identifier in constructor

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 12 12:24:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50359

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-04-12
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-12 12:23:38 UTC ---
Confirmed. Clang doesn't do much better, but EDG is very good:


"ComeauTest.c", line 8: error: identifier "undeclared" is undefined
  Foo::Foo(undeclared)
           ^

"ComeauTest.c", line 8: error: no instance of overloaded function "Foo::Foo"
matches
          the specified type
  Foo::Foo(undeclared)
       ^



More information about the Gcc-bugs mailing list