This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42061] New: [4.4/4.5 Regression] [c++0x] ICE with invalid initializer list for reference


The following invalid testcase triggers an ICE since GCC 4.4.2:

==================
int& i = { j };
==================

bug.cc:1:12: error: 'j' was not declared in this scope
bug.cc:1:14: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in reference_related_p, at cp/call.c:972
Please submit a full bug report, [etc.]


-- 
           Summary: [4.4/4.5 Regression] [c++0x] ICE with invalid
                    initializer list for reference
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]