]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/std/array
re PR libstdc++/54388 (std::array.at() const results in undefined behaviour)
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sun, 9 Sep 2012 17:56:51 +0000 (17:56 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 9 Sep 2012 17:56:51 +0000 (18:56 +0100)
commit885e812159dcbf83f790eee9d839f91daa553eb3
tree9a602af81e687d5ca4c3dd7a733930b7460808f1
parentb4661bfe214bf5ae119c511f994336ccc3fe144c
re PR libstdc++/54388 (std::array.at() const results in undefined behaviour)

PR libstdc++/54388
* include/std/array (array::at() const): Ensure lvalue result.
* testsuite/23_containers/array/element_access/54388.cc: New.
* testsuite/23_containers/array/tuple_interface/get_neg.cc: Adjust
dg-error line numbers.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
Likewise.

From-SVN: r191114
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/array
libstdc++-v3/testsuite/23_containers/array/element_access/54388.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/array/tuple_interface/get_neg.cc
libstdc++-v3/testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc