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

Reply via email to