This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17695] New: ICE when compiling with -g
- From: "fsm at robots dot ox dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Sep 2004 16:28:26 -0000
- Subject: [Bug c++/17695] New: ICE when compiling with -g
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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