This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12288] unintelligible error message for constructor declaration with misspelled type
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2003 08:43:31 -0000
- Subject: [Bug c++/12288] unintelligible error message for constructor declaration with misspelled type
- References: <20030915173035.12288.redi@gcc.gnu.org>
- 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=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.