This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in egcs-2.93.06
- To: egcs-bugs at cygnus dot com
- Subject: Bug in egcs-2.93.06
- From: Andreas Wimmer <wim at pdib84 dot joanneum dot ac dot at>
- Date: Wed, 10 Feb 1999 10:35:39 +0100
- Reply-To: awimmer at iaik dot tu-graz dot ac dot at
Hi folks,
I think I found a bug in the latest snapshot of egcs concerning
exception specifications. The following code sample
-----------------------------
class Foo
{
public:
void Some() throw (int, double);
};
void
Foo::Some() throw (int, double)
{
}
int
main()
{
Foo oDummy;
}
-------------------------------
produces the error message:
>eegcc foo.cpp
foo.cpp:10: declaration of `Foo::Some()' throws different exceptions
foo.cpp:4: previous declaration here
compiler version:
Reading specs from /usr/local/egcs-develop/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.93.06/specs
gcc version egcs-2.93.06 19990208 (gcc2 ss-980929 experimental)
system : Suse 6.0, glibc2.07, linux 2.2.1, binutils-2.9.1.0.15
egcs-1.1.1 works OK
strangely the following snippet compiles ok with egcs-2.93.06
class Foo
{
public:
void Some() throw (int, double);
};
void
Foo::Some() throw (double)
{
}
int
main()
{
Foo oDummy;
}
--
Andreas Wimmer
Institute of Digital Image Processing http://www.joanneum.ac.at/dib
JOANNEUM RESEARCH http://www.joanneum.ac.at
Wastiangasse 6 tel: (++43) 316 876 1728
A-8010 Graz AUSTRIA fax: (++43) 316 876 1720