[Bug inline-asm/31752] New: ICE with member function in inline asm

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 29 11:27:00 GMT 2007


The following invalid code snippet triggers an ICE since at least GCC 2.95.3:

==========================================================
void foo()
{
  struct { int bar(); } x;
  asm("" : "=m" (x.bar));
}
==========================================================

bug.cc: In function 'void foo()':
bug.cc:4: internal compiler error: tree check: expected field_decl, have
baselink in component_ref_field_offset, at expr.c:5948
Please submit a full bug report, [etc.]


-- 
           Summary: ICE with member function in inline asm
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: inline-asm
        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=31752



More information about the Gcc-bugs mailing list