From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28864 invoked by alias); 25 Jul 2012 11:24:31 -0000 Received: (qmail 28856 invoked by uid 22791); 25 Jul 2012 11:24:30 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Jul 2012 11:24:16 +0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54091] New: internal compiler error in class method with many string objects Date: Wed, 25 Jul 2012 11:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-07/txt/msg01917.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54091 Bug #: 54091 Summary: internal compiler error in class method with many string objects Classification: Unclassified Product: gcc Version: 4.4.6 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: bugzilla-gcc@thewrittenword.com Created attachment 27870 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27870 output of g++ -save-temps command from description... $ g++ -v Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: /opt/build/gcc-4.4.6/configure --enable-nls --with-included-gettext --enable-shared --enable-threads --with-local-prefix=/opt/TWWfsw/gcc44 --with-gmp=/opt/TWWfsw/libgmp43 --with-mpfr=/opt/TWWfsw/libmpfr30 --with-gmp-ldflags='-Wl,-brtl -Wl,-blibpath:/opt/TWWfsw/libgmp43/lib:/usr/lib' --with-mpfr-ldflags='-Wl,-brtl -Wl,-blibpath:/opt/TWWfsw/libmpfr30/lib:/usr/lib' --enable-languages=ada,c,c++,fortran --datadir=/opt/TWWfsw/gcc44/share --with-gxx-include-dir=/opt/TWWfsw/gcc44/include/c++ --prefix=/opt/TWWfsw/gcc44 Thread model: aix gcc version 4.4.6 [TWW] (GCC) $ g++ -save-temps -I/opt/TWWfsw/libwxgtk28/lib/gcc44/wx/include/gtk2-unicode-release-2.8 -I/opt/TWWfsw/libwxgtk28/include/gcc44 -D__WXGTK__ -O2 -c ice.cpp : In member function 'void Ice::Segv()': :1139: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ice.ii attached. Data points: * This bug was found when compiling code blocks-10.05 against wxGTK-2.8.12, in the file src/plugins/contrib/headerfixup/defaults.cpp, but I removed the majority of noise except '#include ' which is needed to trip the bug. * Preprocessing the file separately, and then compiling the output works correctly. * Removing a single one of the 1126 identical lines in Ice:Segv changes the error to an out of memory fault. * Reducing optimisation to -O1 allows the compile to succeed. * Trying to factor away the wxString type (replacing L"x" with "x" and wxString with string) allows compilation to succeed.