c++/908: Bogus program creates ICE

Richard Earnshaw rearnsha@cambridge.arm.com
Mon Nov 27 10:46:00 GMT 2000


>Number:         908
>Category:       c++
>Synopsis:       Bogus program creates ICE
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 27 10:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Richard Earnshaw
>Release:        2.97 20001127 (experimental)
>Organization:
ARM
>Environment:
System: NetBSD shark1 1.5H NetBSD 1.5H (SHARK) #57: Mon Oct 30 17:12:12 GMT 2000 rearnsha@shark1:/usr/src/sys/arch/arm32/compile/SHARK arm32


	
host: arm-unknown-netbsd
build: arm-unknown-netbsd
target: arm-unknown-netbsd
configured with: /home/rearnsha/gnusrc/egcs/configure --with-gcc-version-trigger=/home/rearnsha/gnusrc/egcs/gcc/version.c --host=arm-netbsd --prefix=/work/rearnsha/gnu/install --disable-checking : (reconfigured)  : (reconfigured) 
>Description:
	The following program (which I think is invalid) causes an ICE
	with this mornings check-out of the compiler.

	int main(void)
	{
	  try {	
	    foo();
	  }
	  catch {}
	 return 0;
	}

	void foo(void)
	{
	  return;
	}

	
>How-To-Repeat:

	$g++ testex.cc
	testex.cc:8: parse error before '{' token
	testex.cc:8: Internal error #122.
	testex.cc:8: Internal compiler error in finish_function, at cp/decl.c:14147
	confused by earlier errors, bailing out

	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-bugs mailing list