This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9706: Internal error: segmentation fault
- From: bangerth at dealii dot org
- To: gabriel at dit dot upm dot es, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 14 Feb 2003 21:40:34 -0000
- Subject: Re: c++/9706: Internal error: segmentation fault
- Reply-to: bangerth at dealii dot org, gabriel at dit dot upm dot es, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Internal error: segmentation fault
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Feb 14 21:40:34 2003
State-Changed-Why:
Confirmed. This is a reduced piece of code:
-----------------------
class B {
struct XXX {};
int XXX;
};
template <typename T> struct Y : B {};
template <typename T> struct Z : Y<T> {};
------------------------
This ICEs gcc 2.95 through 3.3, and is accepted by 3.4.
I think 3.4 is actually in error here, since you shouldn't
be able to have variables and classes of the same name.
There's another report already about this problem, but
I don't know whether they are really equivalent.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9706