r222075 - in /branches/google/gcc-4_9/libstdc++...

brooks@gcc.gnu.org brooks@gcc.gnu.org
Tue Apr 14 03:53:00 GMT 2015


Author: brooks
Date: Tue Apr 14 03:53:21 2015
New Revision: 222075

URL: https://gcc.gnu.org/viewcvs?rev=222075&root=gcc&view=rev
Log:
Remove this line:
  { return *static_cast<_Tp*>(nullptr); }
by replacing _S_ref with _S_ptr, so that calling begin() on a zero-sized
std::array doesn't immediately perform indirection on a null pointer.

This also requires marking std::__addressof as constexpr in C++11 mode.
Note that this does not affect std::addressof, as the latter is a wrapper
rather than an alias.

In addition, two tests needed line numbers changed.


Modified:
    branches/google/gcc-4_9/libstdc++-v3/include/bits/move.h
    branches/google/gcc-4_9/libstdc++-v3/include/std/array
    branches/google/gcc-4_9/libstdc++-v3/testsuite/20_util/forward/c_neg.cc
    branches/google/gcc-4_9/libstdc++-v3/testsuite/20_util/forward/f_neg.cc



More information about the Libstdc++-cvs mailing list