This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10230: [3.4 regression] type `A::B' is not a base type for type `C'
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pepeaty at yahoo dot com
- Date: 26 Mar 2003 21:27:32 -0000
- Subject: Re: c++/10230: [3.4 regression] type `A::B' is not a base type for type `C'
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pepeaty at yahoo dot com, gcc-gnats at gcc dot gnu dot org
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