From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27111 invoked by alias); 4 Apr 2008 21:29:25 -0000 Received: (qmail 26942 invoked by uid 48); 4 Apr 2008 21:28:39 -0000 Date: Fri, 04 Apr 2008 21:29:00 -0000 Subject: [Bug c++/35828] New: ICE on template-heavy C++ code, reported in innocent source line X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "gcc at cohi dot at" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00383.txt.bz2 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 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