I just tried to compile the Suse Linux package epos-2.5.37
with the GNU C++ compiler version 4.4 snapshot 20080829

The compiler said

slowstring.h: In member function 'CBasicString<T> CBasicString<T>::substr(int,
int) const [with T = char]':
slowstring.h:232: 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.


Pre-processed source code attached. Flag -O3 required.

Here is a valgrind stack back trace

==7011== Invalid read of size 2
==7011==    at 0x62B705: decl_class_context (dwarf2out.c:5777)
==7011==    by 0x63F7E8: dwarf2out_abstract_function (dwarf2out.c:13361)
==7011==    by 0x641D24: gen_decl_die (dwarf2out.c:15111)
==7011==    by 0x686F52: rest_of_handle_final (final.c:4163)
==7011==    by 0x751B21: execute_one_pass (passes.c:1277)
==7011==    by 0x751D54: execute_pass_list (passes.c:1325)
==7011==    by 0x751D6C: execute_pass_list (passes.c:1326)
==7011==    by 0x751D6C: execute_pass_list (passes.c:1326)
==7011==    by 0x82064B: tree_rest_of_compilation (tree-optimize.c:418)
==7011==    by 0x991E6F: cgraph_expand_function (cgraphunit.c:1039)
==7011==    by 0x993BDC: cgraph_optimize (cgraphunit.c:1101)
==7011==    by 0x4A0714: cp_write_global_declarations (decl2.c:3608)
==7011==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


-- 
           Summary: ice for legal C++ code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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

Reply via email to