egcs-980214 eh bug report
David C Binderman
dcb@pncl.co.uk
Tue Feb 17 10:27:00 GMT 1998
Hello there,
The following code compiles ok, but crashes at run time on machine
i486-pc-linux-gnulibc1
This code works ok on g++ 2.7.2.1 and egcs until 971225, but
for no versions of egcs this year.
I suspect the changes from 971225 to 980115.
#include <stdio.h>
struct E
{
char * str;
E( char * s ) : str(s) {};
};
void
f()
{
throw E( "Intentional Exception");
}
int
main() {
try {
f();
}
catch( E x ) {
printf("caught exception '%s'\n", x.str);
return 0;
}
return 1;
}
Regards
David Binderman MSc BSc +44 1293 534 847 dcb_AVOID_JUNK_MAIL@pncl.co.uk
There is no substitute for skill, taste and experience when programming
- Dr Stroustrup, inventor of C++
More information about the Gcc-bugs
mailing list