public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30850]  New: [4.1/4.2/4.3 regression] ICE with invalid asm statement
@ 2007-02-18 23:10 reichelt at gcc dot gnu dot org
  2007-02-21 15:22 ` [Bug c++/30850] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-18 23:10 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 3.4.0:

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

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

The bug is similar to PR 30849, but the crash is in a different function.


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-30 21:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-18 23:10 [Bug c++/30850] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
2007-02-21 15:22 ` [Bug c++/30850] " rguenth at gcc dot gnu dot org
2007-03-05  3:58 ` mmitchel at gcc dot gnu dot org
2007-08-02 17:51 ` lmillward at gcc dot gnu dot org
2007-08-02 17:53 ` [Bug c++/30850] [4.1/4.2 " lmillward at gcc dot gnu dot org
2008-07-04 21:58 ` [Bug c++/30850] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 21:37 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).