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/18164] New: ICE on trivial invalid asm


void
f (void)
{
  int x;
  asm ("" : "" (x));
}

yields an ICE (discovered while attempting to disallow wide strings in asms)

t.c: In function 'f':
t.c:5: error: output operand constraint lacks '='
t.c:5: error: output operand constraint lacks '='
t.c:5: error: invalid lvalue in asm output 0
t.c:5: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This appears to be fairly recent:

: Search converges between 2004-10-09-014001-trunk (#585) and
2004-10-09-161001-trunk (#586).

-- 
           Summary: ICE on trivial invalid asm
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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