This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
(970917) i386-linux-gnulibc1 STL/-O problem
- To: Mumit Khan <khan at xraylith dot wisc dot edu>, Jason Merrill <jason at cygnus dot com>
- Subject: (970917) i386-linux-gnulibc1 STL/-O problem
- From: Mark Mitchell <mmitchell at usa dot net>
- Date: Fri, 19 Sep 1997 00:04:54 -0700
- Cc: egcs-bugs at cygnus dot com
- References: <199709180654.BAA28687@eh_pc11.xraylith.wisc.edu>
- Reply-To: mmitchell at usa dot net
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