[Bug c++/17695] New: ICE when compiling with -g
fsm at robots dot ox dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Mon Sep 27 16:28:00 GMT 2004
A simple piece of code (distilled below) gives ICE with -g but not without.
The behaviour has persisted over a week or so of CVS checkouts.
[Could an explanation of "host triplet", "target triplet" and "build triplet"
be provided somewhere? I had to guess/google to find out what you wanted and
I am still not sure it is right.]
$ uname -a
Linux theseus 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386
GNU/Linux
$ gcc -v
Reading specs from /lvm/fred/gcc/cvs/install/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc/configure --prefix=/lvm/fred/gcc/cvs/install
--enable-static --enable-shared --enable-languages=c,c++,f95
--with-mpfr=/lvm/fred/pkg/gmp/install
Thread model: posix
gcc version 4.0.0 20040927 (experimental)
--------------8<-------------
// gives ICE when compiled with -g
template <typename T>
struct A
{
A(T *);
};
template <typename T>
struct B : A<T>
{
B();
};
struct C
{
C();
};
C::C()
{
typedef double D;
B<D> foo;
}
--
Summary: ICE when compiling with -g
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fsm at robots dot ox dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17695
More information about the Gcc-bugs
mailing list