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]

(970917) i386-linux-gnulibc1 STL/-O problem



    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



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