[Bug c++/27451] New: [4.0/4.1/4.2 regression] ICE with invalid asm statement

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 6 01:14:00 GMT 2006


The following invalid testcase crashes the C++ frontend since GCC 3.4.0:

=====================
void foo()
{
  asm("" ::: X);
}
=====================

bug.cc: In function 'void foo()':
bug.cc:3: error: expected string-literal before 'X'
bug.cc:3: error: expected `)' before 'X'
bug.cc:3: internal compiler error: tree check: expected string_cst, have
error_mark in expand_asm_operands, at stmt.c:696
Please submit a full bug report, [etc.]

The C frontend is not affected.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid asm statement
           Product: gcc
           Version: 4.2.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=27451



More information about the Gcc-bugs mailing list