Subject: B17.1 ERROR MESSAGE LOOPING IN CASE
From: [email-masked] (Tage Westlund)

31 Jan 1997 20:39:11 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win95; I)
Original-To: [email-masked]
Original-CC: [email-masked]
Original-Sender: [email-masked]

/* 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!
   <[email-masked]>
   ===============================================================
   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
"[email-masked]" with one line of text: "help".