This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/29906] New: -d option creates internal compiler error
- From: "axel-freyn at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2006 10:27:24 -0000
- Subject: [Bug debug/29906] New: -d option creates internal compiler error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
without "-d" -option, the code compiles cleanly and works.
with "-d", the compiler crashs:
bug.cc:5: internal compiler error: in force_type_die, at dwarf2out.c:12904
the file bug.cc:
struct A{
typedef int T;
virtual ~A();
};
struct B:public A{
using A::T;
};
The error occurs with versions
gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
gcc version 4.0.4 20060904 (prerelease) (Debian 4.0.3-7)
gcc version 4.1.0 (configured with: ../../gcc_download/gcc-4.1.0/configure
--prefix=/home/abf/gcc --program-suffix=-4.1)
the older versions
gcc-Version 3.3.6 (Debian 1:3.3.6-13)
gcc-Version 3.4.6 (Debian 3.4.6-4)
work
the output of "gcc -v -save-temps -g bug.cc" is
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c
++,treelang --prefix=/usr --enable-shared --with-system-zlib
--libexecdir=/usr/l
ib --without-included-gettext --enable-threads=posix --enable-nls
--program-suff
ix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--en
able-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19)
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1plus -E -quiet -v -D_GNU_SOURCE bug.cc
-mt
une=i686 -fworking-directory -fpch-preprocess -o bug.ii
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../i4
86-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.1.2/include
/usr/include
End of search list.
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1plus -fpreprocessed bug.ii -quiet
-dumpbas
e bug.cc -mtune=i686 -auxbase bug -g -version -o bug.s
GNU C++ version 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) (i486-linux-gnu)
compiled by GNU C version 4.1.2 20061028 (prerelease) (Debian
4.1.1-19).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63375
Compiler executable checksum: 0e07954a28908c1fdf868e745ba25559
bug.cc:5: internal compiler error: in force_type_die, at dwarf2out.c:12904
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/cc0udwsp.out file, please attach this to
yo
ur bugreport.
--
Summary: -d option creates internal compiler error
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: axel-freyn at gmx dot de
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29906