public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc at cohi dot at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/35828]  New: ICE on template-heavy C++ code, reported in innocent source line
Date: Fri, 04 Apr 2008 21:29:00 -0000	[thread overview]
Message-ID: <bug-35828-6959@http.gcc.gnu.org/bugzilla/> (raw)

Just got an ICE while compiling some template-heavy C++ code; as shown below,
the error is reported in parse_debug.hh, however the last change to the code,
the one that triggered the ICE, was in parse_printer.hh (I split class printer
into two classes, printer and printer_impl). I'll add the preprocessed file in
a separate comment/file.

> uname -a
Darwin tigger.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST
2008; root:xnu-1228.4.31~1/RELEASE_I386 i386 i386 MacBookPro3,1 Darwin

> g++-mp-4.3 -v
Using built-in specs.
Target: i386-apple-darwin9.2.0
Configured with: ../gcc-4.3.0/configure --prefix=/opt/macports-1.6.0
--enable-languages=c,c++,objc,obj-c++,java,fortran
--libdir=/opt/macports-1.6.0/lib/gcc43
--includedir=/opt/macports-1.6.0/include/gcc43
--infodir=/opt/macports-1.6.0/share/info --mandir=/opt/macports-1.6.0/share/man
--with-local-prefix=/opt/macports-1.6.0 --with-system-zlib --disable-nls
--program-suffix=-mp-4.3
--with-gxx-include-dir=/opt/macports-1.6.0/include/gcc43/c++/
--with-gmp=/opt/macports-1.6.0 --with-mpfr=/opt/macports-1.6.0
Thread model: posix
gcc version 4.3.0 (GCC) 

> g++-mp-4.3 -I. -std=gnu++0x -D_REENTRANT -pipe -O3 -Wall -Wextra -Wimplicit -Wconversion -Wcast-align -Woverloaded-virtual -Wold-style-cast -Wformat=2 -Wswitch-enum -Wswitch-default -Wredundant-decls -fno-enforce-eh-specs -fno-strict-overflow -lpthread calculator.cc -o calculator
./parse_debug.hh: In function 'int main(int, char**)':
./parse_debug.hh:101: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE on template-heavy C++ code, reported in innocent
                    source line
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at cohi dot at
  GCC host triplet: i386-apple-darwin9.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828


             reply	other threads:[~2008-04-04 21:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 21:29 gcc at cohi dot at [this message]
2008-04-04 21:31 ` [Bug c++/35828] " gcc at cohi dot at
2008-04-04 21:44 ` gcc at cohi dot at
2008-04-08  8:32 ` gcc at cohi dot at
2008-04-08  8:35 ` [Bug c++/35828] ICEs in template-heavy C++0x code gcc at cohi dot at
2008-04-08 10:56 ` gcc at cohi dot at
2008-12-28 22:13 ` [Bug c++/35828] [C++0x] ICE on default template template parameter in template function reichelt at gcc dot gnu dot org
2009-04-20 17:51 ` gcc at abeckmann dot de
2009-04-22 23:55 ` pinskia at gcc dot gnu dot org
2009-07-07 22:04 ` jason at gcc dot gnu dot org
2009-07-07 22:11 ` jason at gcc dot gnu dot org
2009-07-07 22:16 ` jason 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-35828-6959@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).