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++/12288] unintelligible error message for constructor declaration with misspelled type


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From redi at gcc dot gnu dot org  2003-09-16 08:43 -------
Ah yes, I was a bit hasty filing this, should have checked a better reference. I
blame the unintelligible diagnostic for the fact I didn't spot that ;-)

When not in a constructor the same construct causes a different, but almost as
unintelligible message:

-----------------
class X {};

typedef X::T xt;
------------------

$ g++3 -c 12288-2.cc
map2.cc:3: error: expected init-declarator
map2.cc:3: error: expected `,' or `;'

This is a bit closer to the message in previous versions (which I don't think is
as bad as the current one) but still not much help for the average user trying
to work out what's wrong.


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