public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54091] New: internal compiler error in class method with many string objects
@ 2012-07-25 11:24 bugzilla-gcc at thewrittenword dot com
  2012-07-25 11:35 ` [Bug c++/54091] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-gcc at thewrittenword dot com @ 2012-07-25 11:24 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-13 11:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-25 11:24 [Bug c++/54091] New: internal compiler error in class method with many string objects bugzilla-gcc at thewrittenword dot com
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

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).