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
* [Bug c++/30850] [4.1/4.2/4.3 regression] ICE with invalid asm statement 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 ` rguenth at gcc dot gnu dot org 2007-03-05 3:58 ` mmitchel at gcc dot gnu dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu dot org @ 2007-02-21 15:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-21 15:22 ------- Confirmed. Starting with 4.0.0 there are random segfaults on diagnostics. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |3.4.6 Known to work| |3.3.6 Last reconfirmed|0000-00-00 00:00:00 |2007-02-21 15:22:46 date| | Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30850 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30850] [4.1/4.2/4.3 regression] ICE with invalid asm statement 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 ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2007-03-05 3:58 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=30850 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30850] [4.1/4.2/4.3 regression] ICE with invalid asm statement 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 ` (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 #2 from lmillward at gcc dot gnu dot org 2007-08-02 17:51 ------- Subject: Bug 30850 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=30850 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30850] [4.1/4.2 regression] ICE with invalid asm statement 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 ` (2 preceding siblings ...) 2007-08-02 17:51 ` lmillward at gcc dot gnu dot org @ 2007-08-02 17:53 ` 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 5 siblings, 0 replies; 7+ messages in thread From: lmillward at gcc dot gnu dot org @ 2007-08-02 17:53 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from lmillward at gcc dot gnu dot org 2007-08-02 17:53 ------- 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=30850 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30850] [4.2 regression] ICE with invalid asm statement 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 ` (3 preceding siblings ...) 2007-08-02 17:53 ` [Bug c++/30850] [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:37 ` 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 #4 from jsm28 at gcc dot gnu dot org 2008-07-04 21:58 ------- 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=30850 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/30850] [4.2 regression] ICE with invalid asm statement 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 ` (4 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2009-03-30 21:37 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from jsm28 at gcc dot gnu dot org 2009-03-30 21:37 ------- Closing 4.2 branch, fixed in 4.3. -- jsm28 at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to fail|3.4.6 |3.4.6 4.2.5 Known to work|3.3.6 |3.3.6 4.3.0 Resolution| |FIXED Target Milestone|4.2.5 |4.3.0 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).