public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "axel-freyn at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/29906]  New: -d option creates internal compiler error
Date: Mon, 20 Nov 2006 10:27:00 -0000	[thread overview]
Message-ID: <bug-29906-13593@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2006-11-20 10:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-20 10:27 axel-freyn at gmx dot de [this message]
2006-11-20 10:29 ` [Bug debug/29906] " axel-freyn at gmx dot de
2006-11-20 15:09 ` [Bug debug/29906] [4.0/4.1 Regression] -g " pinskia at gcc dot gnu dot org
2006-11-20 15:10 ` pinskia at gcc dot gnu dot org
2006-11-20 15:11 ` pinskia at gcc dot gnu dot org
2006-11-21 22:00 ` janis at gcc dot gnu dot org
2006-11-22  4:30 ` [Bug debug/29906] [4.0/4.1/4.2/4.3 " pinskia at gcc dot gnu dot org
2007-02-05  5:26 ` mmitchel at gcc dot gnu dot org
2007-02-14  9:02 ` mmitchel at gcc dot gnu dot org
2007-03-13  7:56 ` aoliva at gcc dot gnu dot org
2007-03-13  9:14 ` patchapp at dberlin dot org
2007-03-16  5:09 ` aoliva at gcc dot gnu dot org
2007-03-16  5:09 ` aoliva at gcc dot gnu dot org
2007-03-17  3:49 ` [Bug debug/29906] [4.0 " aoliva at gcc dot gnu dot org
2007-03-17  4:53 ` aoliva at gcc dot gnu dot org
2007-03-17  6:48 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29906-13593@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).