This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug in egcs-2.93.06


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]