public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tbm at cyrius dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/29059] [4.2 regression] ICE: verify_stmts failed (invalid operand to unary operator ""[0];)
Date: Wed, 13 Sep 2006 21:33:00 -0000	[thread overview]
Message-ID: <20060913213333.29159.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29059-13019@http.gcc.gnu.org/bugzilla/>



------- 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 <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>.
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


  parent reply	other threads:[~2006-09-13 21:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-13  8:24 [Bug c++/29059] New: " tbm at gcc dot gnu dot org
2006-09-13 16:17 ` [Bug c++/29059] " pinskia at gcc dot gnu dot org
2006-09-13 18:13 ` janis at gcc dot gnu dot org
2006-09-13 18:34 ` pinskia at gcc dot gnu dot org
2006-09-13 21:33 ` tbm at cyrius dot com [this message]
2006-09-14  4:11 ` pinskia at gcc dot gnu dot org
2006-09-14  4:12 ` pinskia at gcc dot gnu dot org
2006-09-16 22:52 ` [Bug tree-optimization/29059] " pinskia at gcc dot gnu dot org
2006-09-16 22:52 ` pinskia at gcc dot gnu dot org
2007-06-26 11:49 ` jakub at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060913213333.29159.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).