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]

CYGWIN32-b17.1 ERROR MSG LOOP


// To those who make the next and still better cygwin32 version!
// Are my bug reports trivial? Anyhow, here is another endless error
// message loop!
// I use version b17.1 ( 2.7.2-961023 ) and Win95.
// I made:  g++ bug293.C
// Best Regards!    <tage.westlund@stockholm.mail.telia.com>
// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Program bug283.C
#include <stream.h>
main(){
	char ch;
	int n10=6;
	switch(n10){
		case 6:
			do{
				if(1){
//					do{ // comment out this 'do'
				// and you will have an endless 
				// error message loop
						cin >> ch;
						if(ch=='e')return 0;
					}while(ch != 's');
				}
			}while(1);
			return 0;
			break;
		case 7:
			break;
	}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// The error list is:
// bug283.C: In function `int main()':
// bug283.C:24: syntax error before `}'
// bug283.C:26: break statement not within loop or switch
// bug283.C:27: case label `7' not within a switch statement
// (C:\cygnus\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/
//	cygnus-2.7.2-961023/cc1plus.exe 1026) In cygwin_except_handler
// (C:\cygnus\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/
//	cygnus-2.7.2-961023/cc1plus.exe 1026) In cygwin_except_handler
// (infinitly repeated)

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