[Bug libstdc++/29688] resize initializes whole array

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Thu Nov 2 13:34:00 GMT 2006



------- Comment #1 from pcarlini at suse dot de  2006-11-02 13:34 -------
I do not have Stroustrup at hand, but certainly the ISO C++ Standard 2003, the
real reference for our work (we are implementing it), says, in 26.3.2.7/9, that
resize first changes the length of *this to sz and then assigns to each element
the value of the second argument. It also says that the operation invalidates
all pointers and references to elements in the array, thus, the meaning is
clear and our implementation is 100% conforming.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |libstdc++
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list