[Bug c++/49021] [4.6 regression] BOOST_FOREACH over vector segfaults at runtime

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 20 10:12:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49021

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-20 09:48:42 UTC ---
(In reply to comment #9)
> (In reply to comment #8)
> > I'm trying to reduce the preprocessed test case, but since I'm not a C++ person
> > this might take some time.
> 
> Scratch that, the preprocessed code is way too weird for me.

welcome to Boost MPL!  ;)

there are huge chunks that can be removed (iostreams and locales,
reverse_iterators) but reducing it manually is not easy.

See http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction for a tool to do it
automatically



More information about the Gcc-bugs mailing list