[Bug middle-end/39509] bad optimization(?) pure virtual function call with -O2

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Apr 16 20:55:00 GMT 2009



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-04-16 20:54 -------
What target are you compiling on?   I could not link this on i686-darwin:
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char> const&)
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::reserve(unsigned int)
___assert_fail


Can you give the output of gcc -v ?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|c++                         |middle-end
           Keywords|                            |wrong-code


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



More information about the Gcc-bugs mailing list