c++/10230: [3.4 regression] type `A::B' is not a base type for type `C'
bangerth@dealii.org
bangerth@dealii.org
Wed Mar 26 22:32:00 GMT 2003
Old Synopsis: type `A::B' is not a base type for type `C'
New Synopsis: [3.4 regression] type `A::B' is not a base type for type `C'
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Mar 26 21:27:32 2003
State-Changed-Why:
The error message is indeed warranted, although it is
formulated in such a clumsy way that it's hard to understand
what exactly is wrong. Here's what icc says:
g/x> icc -c x.cc
x.cc(11): error: a nonstatic member reference must be relative to a specific object
void f(void) { sizeof(A::B::a); }
^
However, things are worse: present mainline ICEs on this
code:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In member function `void C::f()':
x.cc:11: internal compiler error: Segmentation fault
This is a regression w.r.t. previous versions.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10230
More information about the Gcc-bugs
mailing list