| delorie.com/archives/browse.cgi | search |
| From: | tage DOT westlund AT stockholm DOT mail DOT telia DOT com (Tage Westlund) |
| Subject: | B17.1 ERROR MESSAGE LOOPING IN CASE |
| 31 Jan 1997 20:39:11 -0800 : | |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <32F288C9.6A3C.cygnus.gnu-win32@stockholm.mail.telia.com> |
| Reply-To: | tage DOT westlund AT stockholm DOT mail DOT telia DOT com |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 3.0 (Win95; I) |
| Original-To: | gnu-win32 AT cygnus DOT com |
| Original-CC: | tage DOT westlund AT stockholm DOT mail DOT telia DOT com |
| Original-Sender: | owner-gnu-win32 AT cygnus 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 DOT westlund AT stockholm DOT mail DOT telia DOT 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 AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |