[Bug libstdc++/21951] [4.0 only] std::vector.reserve() unusable with -Werror -Wall -O -fno-exceptions

veksler at il dot ibm dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 8 14:11:00 GMT 2005


------- Additional Comments From veksler at il dot ibm dot com  2005-06-08 14:11 -------
(In reply to comment #6)
> Note Mark has said in the past (and in a private mail which was supposed to be
a public one too) that 
> warnings cannot cause this to be a rejects valid.


For the same reason, PR 21183 should be reopened or merged with this PR:

> When compiling a C++ program with -Wall, I get the following compiler warning
>
>/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.0.0/../../../../include/c++/4.0.0/bits/stl_uninitialized.h:113:
>warning: control may reach end of non-void function '_ForwardIterator
> std::__uninitialized_copy_aux(_InputIterator, _InputIterator, 
...
> The problem seems to be in __uninitialized_copy_aux() in stl_uninitialized.h
>
> The catch statement block beginning on line 89 merely exits the routine without 
> actually returning a value.



-- 


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



More information about the Gcc-bugs mailing list