(970917) i386-linux-gnulibc1 STL/-O problem
Mark Mitchell
mmitchell@usa.net
Fri Sep 19 00:02:00 GMT 1997
Mumit> The following code causes an internal compiler error (not
Mumit> present in earlier snapshots). Ditto for -O, -O -g, -O2 -g,
Mumit> etc.
Mumit> ======== cut here #include <stack> #include <vector>
Mumit> int main() { priority_queue< int, vector<int>, greater<int>
Mumit> > pq; return 0; } ========
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.)
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu
More information about the Gcc-bugs
mailing list