The following (IMHO valid) code snippet triggers an ICE on mainline
when compiled with -std=gnu++0x:

==========================================
void foo()
{
  (const char&&)0;
}
==========================================

bug.cc: In function 'void foo()':
bug.cc:3: internal compiler error: in build_c_cast, at cp/typeck.c:5621
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with rvalue references and casts
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, 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=35076

Reply via email to