This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B17.1 ERROR MESSAGE LOOPING IN CASE
- To: gnu-win32 at cygnus dot com
- Subject: B17.1 ERROR MESSAGE LOOPING IN CASE
- From: Tage Westlund <tage dot westlund at stockholm dot mail dot telia dot com>
- Date: Fri, 31 Jan 1997 23:05:29 -0100
- Cc: tage dot westlund at stockholm dot mail dot telia dot com
- Organization: G-LOGIKMETODER
- Reply-To: tage dot westlund at stockholm dot mail dot telia dot com
/* An error message endless loop is present in cygnus-win32-b17.1
Running the following simple C-code will give the message shown
below. I can not give a patch. This mail is a C program.
Best Regards!
<tage.westlund@stockholm.mail.telia.com>
===============================================================
making > gcc -v in my computer gives:
Reading specs from C:\cygnus\H-i386-cygwin32\lib
\gcc-lib\i386-cygwin32/cygnus-2.7.2-961023/specs
gcc version cygnus-2.7.2-961023
making > gcc -c test.C gives:
test.C: In function `int main()':
test.C:18: case label `3' not within a switch statement
(C:\cygnus\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/cygnus-
2.7.2-961023/cc1plus.exe 1006) In cygwin_except_handler
- - - -
(C:\...) ... Repeated in endless loop
when test.C contains the following error ( double break; )
========================================================== */
main(){
const int id = 1;
switch (id)
{
case 1:
{
break;
}
case 2:
{
break;
}
break;
}
case 3:
{
break;
}
}
/* End of test program */
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".