This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5661: Gcc 3.0.3 Seg faults compiling bad code
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 12 Feb 2002 13:46:01 -0000
- Subject: Re: c++/5661: Gcc 3.0.3 Seg faults compiling bad code
- Reply-to: Reichelt <reichelt at igpm dot rwth-aachen dot de>
The following reply was made to PR c++/5661; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: adrian.cornish@bluedreamer.com, gcc-gnats@gcc.gnu.org,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/5661: Gcc 3.0.3 Seg faults compiling bad code
Date: Tue, 12 Feb 2002 15:04:20 +0100
Hi,
the problem can be reduced to the following code, which causes an ICE
with gcc 3.1 20020204 (experimental) on i686-pc-linux-gnu and
mips-sgi-irix6.5:
-------------------snip here--------------------
template <class T> struct A
{
A() throw() {}
};
struct B
{
static const int s;
A<int[s]> a; // illegal, constant value not known
};
const int B::s=16;
B b;
-------------------snip here--------------------
The error message is:
PR5661.cpp: In constructor `B::B()':
PR5661.cpp:14: internal error: Segmentation fault
Please submit a full bug report, [etc.]
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5661