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: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mark at codesourcery dot com, nobody at gcc dot gnu dot org, oldham at codesourcery dot com
- Date: 26 Feb 2003 17:14:34 -0000
- Subject: Re: c++/9851: [3.4 regression] confusing error message when using '.', not '->'
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mark at codesourcery dot com, nobody at gcc dot gnu dot org, oldham at codesourcery dot com, gcc-gnats at gcc dot gnu dot org
Old Synopsis: confusing error message when using '.', not '->'
New Synopsis: [3.4 regression] confusing error message when using '.', not '->'
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:14:33 2003
State-Changed-Why:
Confirmed. Not very helpful. For reference (so that one
does not have to open the attachment): code is
-----------------------
struct goo {
void do_nothing () {};
};
struct foo {
foo () { g_.do_nothing (); }
goo * g_;
};
---------------------
and we get
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In constructor `foo::foo()':
x.cc:6: error: expected type-name
x.cc:6: error: expected `::'
x.cc:6: error: expected `~'
x.cc:6: error: expected identifier
This can be considered a regression, since previously
we got this:
g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
x.cc: In constructor `foo::foo()':
x.cc:6: error: request for member `do_nothing' in `this->foo::g_', which is of
non-aggregate type `goo*'
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9851