[Bug c++/48606] New: [4.7 Regression] g++.dg/init/ctor9.C ICE: tree check: expected class 'type', have 'exceptional' (error_mark) with -fkeep-inline-functions

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Thu Apr 14 11:00:00 GMT 2011


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

           Summary: [4.7 Regression] g++.dg/init/ctor9.C ICE: tree check:
                    expected class 'type', have 'exceptional' (error_mark)
                    with -fkeep-inline-functions
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Compiler output:
$ g++ g++.dg/init/ctor9.C -fkeep-inline-functions
g++.dg/init/ctor9.C: In constructor 'S::S()':
g++.dg/init/ctor9.C:7:13: error: value-initialization of reference type 'int&'
g++.dg/init/ctor9.C: In constructor 'S::S()':
g++.dg/init/ctor9.C:7:13: internal compiler error: tree check: expected class
'type', have 'exceptional' (error_mark) in useless_type_conversion_p, at
tree-ssa.c:1248
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r172415 - crash
4.6 r172337 - OK



More information about the Gcc-bugs mailing list