egcs and exception declaration

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Jun 30 23:07:00 GMT 1999


> But if I rewrite the implementation of "foo" like this:
> 	void foo() throw (X2) {...};  // X1 omitted!!
> the code compiles ok. Am I missing something, or is it really a bug?
> 
> The version of the used egcs is: gcc version egcs-2.90.29 980515
> (egcs-1.0.3 release)

This is really a bug; egcs 1.1.2 compiles your code just fine. If you
need this to work, I suggest upgrading. If you do so, you might just
as well start with the snapshots for gcc 2.95; gcc 2.95 is hopefully
released within a few weeks.

Regards,
Martin



More information about the Gcc-bugs mailing list