This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
970924/i386-linux-gnulibc1: exception handling problem
- To: egcs-bugs at cygnus dot com
- Subject: 970924/i386-linux-gnulibc1: exception handling problem
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Thu, 25 Sep 1997 13:43:28 -0500
Mark Mitchell <mmitchell@usa.net> writes:
>
> Mumit> The following code causes an internal compiler error (not
> Mumit> present in earlier snapshots). Ditto for -O, -O -g, -O2 -g,
> Mumit> etc.
>
> I thought this was probably member-template related, but in fact it
> only happens with -O, and goes away with -fsjlj-exceptions (but not
> -fno-exceptions, is that broken?), so I suspect a problem in the new
> exception-handling code. (Note that I didn't apply Jason's recent
> patches, so it might well be that they fix this bug.)
>
Here's the code again:
========= cut here
#include <stack>
#include <vector>
int main()
{
priority_queue< int > pq;
return 0;
}
========= end
Still there in 970924 for i386-linux-gnulibc1 (but at least egcs
bootstraps now).
Wonder why does -fno-exceptions does not work as Mark notes?
% c++ -O2 -c pqueue-test.cc << Fail
% c++ -O2 -c pqueue-test.cc -fno-exceptions << Fail
% c++ -O2 -c pqueue-test.cc -fsjlj-exceptions << OK
Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/