public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement
@ 2007-02-18 23:06 reichelt at gcc dot gnu dot org
2007-02-18 23:06 ` [Bug c++/30849] " reichelt 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:06 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: error: lvalue required in asm statement
bug.cc:3: internal compiler error: tree check: expected string_cst, have
error_mark in finish_asm_stmt, at cp/semantics.c:1251
Please submit a full bug report, [etc.]
--
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=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.1/4.2/4.3 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
@ 2007-02-18 23:06 ` reichelt at gcc dot gnu dot org
2007-02-19 21:13 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-18 23:06 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.1/4.2/4.3 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
2007-02-18 23:06 ` [Bug c++/30849] " reichelt at gcc dot gnu dot org
@ 2007-02-19 21:13 ` mmitchel at gcc dot gnu dot org
2007-08-02 17:51 ` lmillward at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-19 21:13 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.1/4.2/4.3 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
2007-02-18 23:06 ` [Bug c++/30849] " reichelt at gcc dot gnu dot org
2007-02-19 21:13 ` mmitchel at gcc dot gnu dot org
@ 2007-08-02 17:51 ` lmillward at gcc dot gnu dot org
2007-08-02 17:52 ` [Bug c++/30849] [4.1/4.2 " lmillward at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2007-08-02 17:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from lmillward at gcc dot gnu dot org 2007-08-02 17:51 -------
Subject: Bug 30849
Author: lmillward
Date: Thu Aug 2 17:50:55 2007
New Revision: 127167
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127167
Log:
PR c++/30849
PR c++/30850
PR c++/30851
* parser.c (cp_parser_asm_definition): Detect and discard asm
statements with invalid inputs or outputs.
(cp_parser_asm_operand_list): Return error mark node if any
of the operands are invalid. Adjust documentation.
PR c++/30849
* g++.dg/parse/asm1.C: New test.
PR c++/30850
* g++.dg/parse/asm2.C: Likewise.
PR c++/30851
* g++.dg/parse/asm3.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/parse/asm1.C
trunk/gcc/testsuite/g++.dg/parse/asm2.C
trunk/gcc/testsuite/g++.dg/parse/asm3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.1/4.2 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-08-02 17:51 ` lmillward at gcc dot gnu dot org
@ 2007-08-02 17:52 ` lmillward at gcc dot gnu dot org
2008-07-04 21:58 ` [Bug c++/30849] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 21:36 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2007-08-02 17:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lmillward at gcc dot gnu dot org 2007-08-02 17:52 -------
Fixed on mainline.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2/4.3 regression] ICE|[4.1/4.2 regression] ICE
|with invalid asm statement |with invalid asm statement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.2 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-08-02 17:52 ` [Bug c++/30849] [4.1/4.2 " lmillward at gcc dot gnu dot org
@ 2008-07-04 21:58 ` jsm28 at gcc dot gnu dot org
2009-03-30 21:36 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jsm28 at gcc dot gnu dot org 2008-07-04 21:57 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 regression] ICE |[4.2 regression] ICE with
|with invalid asm statement |invalid asm statement
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30849] [4.2 regression] ICE with invalid asm statement
2007-02-18 23:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-07-04 21:58 ` [Bug c++/30849] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 21:36 ` jsm28 at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-30 21:36 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to fail| |4.2.5
Known to work| |4.3.0
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30849
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-03-30 21:36 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:06 [Bug c++/30849] New: [4.1/4.2/4.3 regression] ICE with invalid asm statement reichelt at gcc dot gnu dot org
2007-02-18 23:06 ` [Bug c++/30849] " reichelt at gcc dot gnu dot org
2007-02-19 21:13 ` mmitchel at gcc dot gnu dot org
2007-08-02 17:51 ` lmillward at gcc dot gnu dot org
2007-08-02 17:52 ` [Bug c++/30849] [4.1/4.2 " lmillward at gcc dot gnu dot org
2008-07-04 21:58 ` [Bug c++/30849] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 21:36 ` 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).