public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29059]  New: [4.2 regression] ICE: verify_stmts failed (invalid operand to unary operator ""[0];)
@ 2006-09-13  8:24 tbm at gcc dot gnu dot org
  2006-09-13 16:17 ` [Bug c++/29059] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tbm at gcc dot gnu dot org @ 2006-09-13  8:24 UTC (permalink / raw)
  To: gcc-bugs

Compiling as C works, C++ fails.  This worked with 20060823.

(sid)118:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O re-ru32un.c
re-ru32un.c: In function 'void LoadUserAlph(char*)':
re-ru32un.c:4: error: invalid operand to unary operator
""[0];

re-ru32un.c:4: 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>.
zsh: exit 1     /usr/lib/gcc-snapshot/bin/g++ -c -O re-ru32un.c
(sid)119:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/g++ -c re-ru32un.c
(sid)120:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O re-ru32un.c
(sid)121:tbm@em64t: ~] cat re-ru32un.c
extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);
char wrkstr_un[270];
extern void
LoadUserAlph (char *s)
{
  s = wrkstr_un;
  strcpy (s, "");
};


-- 
           Summary: [4.2 regression] ICE: verify_stmts failed (invalid
                    operand to unary operator ""[0];)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29059


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-26 11:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-13  8:24 [Bug c++/29059] New: [4.2 regression] ICE: verify_stmts failed (invalid operand to unary operator ""[0];) 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
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

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