From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29185 invoked by alias); 13 Sep 2006 21:33:39 -0000 Received: (qmail 29160 invoked by uid 48); 13 Sep 2006 21:33:33 -0000 Date: Wed, 13 Sep 2006 21:33:00 -0000 Message-ID: <20060913213333.29159.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/29059] [4.2 regression] ICE: verify_stmts failed (invalid operand to unary operator ""[0];) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tbm at cyrius dot com" 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-09/txt/msg01297.txt.bz2 List-Id: ------- Comment #4 from tbm at cyrius dot com 2006-09-13 21:33 ------- Here's a C testcase: tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O -Wwrite-strings bsdgames-input.c bsdgames-input.c: In function 'rezero': bsdgames-input.c:15: error: invalid operand to unary operator ""[0]; bsdgames-input.c:15: internal compiler error: verify_stmts failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. For Debian GNU/Linux specific bug reporting instructions, see . tbm@coconut0:~$ cat bsdgames-input.c extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); typedef struct { } RULE; typedef struct { char str[20]; } STACK; STACK stack[15]; int level; rezero () { level = 0; strcpy (stack[level].str, ""); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29059