http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51032
Bug #: 51032 Summary: ICE in dbxout_type, at dbxout.c:2372 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: r...@gcc.gnu.org CC: ja...@gcc.gnu.org Host: alpha-dec-osf5.1b, i386-pc-solaris2.11 Target: alpha-dec-osf5.1b, i386-pc-solaris2.11 Build: alpha-dec-osf5.1b, i386-pc-solaris2.11 Between r180960 and r181158 Tru64 UNIX bootstrap got broken compiling the stage1 libstdc++. The bug can be broken down to $ ./cc1plus -fpreprocessed stdc++.ii -quiet -mieee -g -O2 -std=gnu++11 -o stdc++.s In file included from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/alloc_traits.h:35:0, from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/ext/alloc_traits.h:35, from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/stl_construct.h:63, from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/stl_tempbuf.h:62, from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/stl_algo.h:64, from /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/algorithm:63, from /vol/gcc/src/hg/trunk/local/libstdc++-v3/include/precompiled/stdc++.h:65: /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/ptr_traits.h: In instantiation of 'struct std::pointer_traits<double*>': /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/alloc_traits.h:106:2: required from 'struct std::allocator_traits<std::allocator<double> >' /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/ext/alloc_traits.h:90:10: required from 'struct __gnu_cxx::__alloc_traits<std::allocator<double> >' /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/stl_vector.h:76:28: required from 'struct std::_Vector_base<double, std::allocator<double> >' /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/stl_vector.h:208:11: required from 'class std::vector<double>' /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/random.h:4716:22: required from here /var/gcc/regression/trunk/5.1b-gcc/build/alpha-dec-osf5.1b/libstdc++-v3/include/bits/ptr_traits.h:158:12: internal compiler error: in dbxout_type, at dbxout.c:2372 Since gdb chokes on cc1plus on osf and this seemed to be a stabs issue, I tried a corresponding invocation (from the -save-temps output of generating i386-pc-solaris2.11/bits/stdc++.h.gch/O2ggnu++0x.gch) on Solaris 11/x86, but with -gstabs instead of the default, DWARF-2. I get the same error: $ ./cc1plus -fpreprocessed stdc++.ii -quiet -gstabs+ -std=gnu++11 -o stdc++.s [...]. /var/gcc/regression/trunk/11-gcc-gas/build/i386-pc-solaris2.11/libstdc++-v3/include/bits/ptr_traits.h:158:12: internal compiler error: in dbxout_type, at dbxout.c:2372 In gdb, I find that dbxout_type cannot deal with <template_type_parm fb9fb120 _Up type_0 type_6 VOID align 8 symtab 2070 alias set -1 canonical type fe94a300 index 0 level 1 orig_level 2 pointer_to_this <pointer_type fb9fb180> chain <type_decl fb9fc000 _Up>>