This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9851: [3.4 regression] confusing error message when using '.', not '->'
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: <gcc-gnats at gcc dot gnu dot org>,<oldham at codesourcery dot com>,<gcc-bugs at gcc dot gnu dot org>,"Mark Mitchell" <mark at codesourcery dot com>,<nobody at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>
- Date: Mon, 5 May 2003 01:53:06 +0200
- Subject: Re: c++/9851: [3.4 regression] confusing error message when using '.', not '->'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9851
As a reference, with Comeau I get:
"pr9851.cpp", line 6: error: expression must have class type
foo () { g_.do_nothing (); }
^
which is not bad but probably I prefer the one in GCC before 3.4. With MSVC,
I get:
pr9851.cpp
pr9851.cpp(6) : error C2228: left of '.do_nothing' must have
class/struct/union type
type is 'goo *'
did you intend to use '->' instead?
which is nice.
Giovanni Bajo