This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B17.1 ERROR MESSAGE LOOPING IN CASE


/* 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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]