public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bugzilla-gcc at thewrittenword dot com" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-54091-4@http.gcc.gnu.org/bugzilla/> (raw) 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 <http://gcc.gnu.org/bugs.html> 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 <wx/wxString.h>' 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.
next reply other threads:[~2012-07-25 11:24 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-07-25 11:24 bugzilla-gcc at thewrittenword dot com [this message] 2012-07-25 11:35 ` [Bug c++/54091] " redi at gcc dot gnu.org 2012-10-05 21:27 ` paolo.carlini at oracle dot com 2012-10-05 21:37 ` bugzilla-gcc at thewrittenword dot com 2012-10-12 8:47 ` paolo.carlini at oracle dot com 2012-11-13 11:28 ` paolo.carlini at oracle dot com
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-54091-4@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: linkBe 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).