other/6196: internal error when the wrong number of [ ] in a goto instruction

x_clerc@yahoo.com x_clerc@yahoo.com
Fri Apr 5 15:36:00 GMT 2002


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



More information about the Gcc-prs mailing list