------- Comment #4 from tbm at cyrius dot com  2006-09-13 21:33 -------
Here's a C testcase:

[EMAIL PROTECTED]:~$ /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 <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
[EMAIL PROTECTED]:~$ 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

Reply via email to