Implement constexpr std::addressof for C++17
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Oct 2016 15:34:28 +0000 (16:34 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 10 Oct 2016 15:34:28 +0000 (16:34 +0100)
commit9e023e3321886e0ba1ea7b25c7ef70e50c267963
tree0ae19e10645befcea07ccd7b6638f0cdf12001ec
parent5f869266133f8ad66688c2ff7eaa6f7b0a0f21d0
Implement constexpr std::addressof for C++17

* doc/xml/manual/intro.xml: Document DR 2296 status.
* doc/xml/manual/status_cxx2017.xml: Update status.
* include/bits/move.h (__addressof): Add _GLIBCXX_CONSTEXPR and
call __builtin_addressof.
(addressof): Add _GLIBCXX17_CONSTEXPR.
* testsuite/20_util/addressof/requirements/constexpr.cc: New test.
* testsuite/20_util/forward/c_neg.cc: Adjust dg-error lineno.
* testsuite/20_util/forward/f_neg.cc: Likewise.

From-SVN: r240929
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/doc/xml/manual/status_cxx2017.xml
libstdc++-v3/include/bits/move.h
libstdc++-v3/testsuite/20_util/addressof/requirements/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/forward/c_neg.cc
libstdc++-v3/testsuite/20_util/forward/f_neg.cc