c++/9851: [3.4 regression] confusing error message when using '.', not '->'
bangerth@dealii.org
bangerth@dealii.org
Wed Feb 26 17:14:00 GMT 2003
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
More information about the Gcc-bugs
mailing list