]> git.ipfire.org Git - thirdparty/gcc.git/commit
Implement constexpr std::addressof for C++17
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2016 15:34:28 +0000 (15:34 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Oct 2016 15:34:28 +0000 (15:34 +0000)
commitc3f9a17935773a90fecd36f30ddf1b7e7d58d115
tree0ae19e10645befcea07ccd7b6638f0cdf12001ec
parent8d3bf9dff47e98d0c4afe445a79a545e59d5f121
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240929 138bc75d-0d04-0410-961f-82ee72b054a4
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