public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/6196: internal error when the wrong number of [ ] in a goto instruction
@ 2002-04-05 15:36 x_clerc
0 siblings, 0 replies; only message in thread
From: x_clerc @ 2002-04-05 15:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6196
>Category: other
>Synopsis: internal error when the wrong number of [ ] in a goto instruction
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Apr 05 15:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Xavier Clerc
>Release: gcc version 2.95.3-5 (cygwin special)
>Organization:
>Environment:
cygwin under win98
>Description:
Internal error on the following instructions :
goto *lbls[0][0][0];
goto *lbls[0];
after declaration of lbls as :
static const void* lbls[2][2] = {{&&lbl0, &&lbl0}, {&&lbl0, &&lbl0}};
>How-To-Repeat:
#include <iostream.h>
int main(void) {
static const void* lbls[2][2] = {{&&lbl0, &&lbl0}, {&&lbl0, &&lbl0}};
goto *lbls[0][0][0]; // or : goto *lbls[0];
lbl0:
cout << "end of main" << endl;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-05 23:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 15:36 other/6196: internal error when the wrong number of [ ] in a goto instruction x_clerc
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).