From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11467 invoked by alias); 6 May 2006 01:14:05 -0000 Received: (qmail 11126 invoked by uid 48); 6 May 2006 01:13:56 -0000 Date: Sat, 06 May 2006 01:14:00 -0000 Subject: [Bug c++/27451] New: [4.0/4.1/4.2 regression] ICE with invalid asm statement X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "reichelt at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-05/txt/msg00590.txt.bz2 List-Id: The following invalid testcase crashes the C++ frontend since GCC 3.4.0: ===================== void foo() { asm("" ::: X); } ===================== bug.cc: In function 'void foo()': bug.cc:3: error: expected string-literal before 'X' bug.cc:3: error: expected `)' before 'X' bug.cc:3: internal compiler error: tree check: expected string_cst, have error_mark in expand_asm_operands, at stmt.c:696 Please submit a full bug report, [etc.] The C frontend is not affected. -- Summary: [4.0/4.1/4.2 regression] ICE with invalid asm statement Product: gcc Version: 4.2.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=27451