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

             Bug #: 51154
           Summary: internal compiler error: gimplification failed
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ca...@cs.stanford.edu


Created attachment 25833
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25833
Program that cuases g++ to ICE.

How to reproduce: g++ -c prog.cpp

DIAGNOSTIC:

gimplification failed:
<<< Unknown tree: using_decl >>> <using_decl 0x7f3d605e9f18 counts
    type <record_type 0x7f3d605f0c78 BASE sizes-gimplified used type_5 type_6
DI
        size <integer_cst 0x7f3d60469f40 constant 64>
        unit size <integer_cst 0x7f3d60469f60 constant 8>
        align 32 symtab 0 alias set -1 canonical type 0x7f3d605e7d20
        fields <field_decl 0x7f3d605d3da8 counts type <integer_type
0x7f3d604825e8 int>
            nonlocal decl_3 SI file prog.cpp line 5 col 9
            size <integer_cst 0x7f3d604852c0 constant 32>
            unit size <integer_cst 0x7f3d604852e0 constant 4>
            align 32 offset_align 128
            offset <integer_cst 0x7f3d60469f80 constant 0>
            bit offset <integer_cst 0x7f3d60469fe0 constant 0> context
<record_type 0x7f3d605e7d20 ARRAYS_ND_BASE> chain <field_decl 0x7f3d605d3e40
array>> context <translation_unit_decl 0x7f3d6047f170 D.1>
        full-name "ARRAY<float, VECTOR<int> >::BASE"
        X() X(constX&) this=(X&) n_parents=0 use_template=1 interface-unknown
        pointer_to_this <pointer_type 0x7f3d605f6540> reference_to_this
<reference_type 0x7f3d605f6888> chain <type_decl 0x7f3d605e9450
ARRAYS_ND_BASE>>
    ignored VOID file prog.cpp line 16 col 17
    align 1 context <record_type 0x7f3d605e7bd0 ARRAY> initial <field_decl
0x7f3d605d3da8 counts>
    chain <type_decl 0x7f3d605e9ac8 ARRAY>>
prog.cpp: In member function ‘void ARRAY<T, VECTOR<int> >::Resize() [with T =
float]’:
prog.cpp:17:20: internal compiler error: gimplification failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

COMPILER VERSION:

Using built-in specs.
COLLECT_GCC=/home/cas43/new-gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../current-gcc/configure --prefix=/home/cas43/new-gcc/inst
Thread model: posix
gcc version 4.7.0 20111116 (experimental) (GCC)

Reply via email to