OSDN Git Service

2008-09-17 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2008 22:58:38 +0000 (22:58 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2008 22:58:38 +0000 (22:58 +0000)
commit7b64e03cdc2be61f271794e45338b3981ff93d29
treef8d258492877d9eed5906263f6df625b1d47478a
parentf6f6f7269dddd0205dd3ea6030ff3057f15159ae
2008-09-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/37547
* include/bits/stl_algo.h (min(initializer_list<>),
min(initializer_list<>, Compare), max(initializer_list<>),
max(initializer_list<>, Compare), minmax(initializer_list<>),
minmax(initializer_list<>, Compare)): Fix return type.
* include/bits/algorithmfwd.h: Adjust.
* testsuite/25_algorithms/headers/algorithm/synopsis.cc: Likewise.
* testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc:
        Likewise.
        * testsuite/25_algorithms/max/requirements/explicit_instantiation/
        pod2.cc: Likewise.
* testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc:
        Likewise.
        * testsuite/25_algorithms/min/requirements/explicit_instantiation/
        pod2.cc: Likewise.
* testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
3.cc: Likewise.
        * testsuite/25_algorithms/minmax/requirements/explicit_instantiation/
        pod2.cc: Likewise.
* testsuite/25_algorithms/max/37547.cc: New.
* testsuite/25_algorithms/min/37547.cc: Likewise.
* testsuite/25_algorithms/minmax/37547.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140435 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/algorithmfwd.h
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/headers/algorithm/synopsis.cc
libstdc++-v3/testsuite/25_algorithms/max/37547.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/max/requirements/explicit_instantiation/3.cc
libstdc++-v3/testsuite/25_algorithms/max/requirements/explicit_instantiation/pod2.cc
libstdc++-v3/testsuite/25_algorithms/min/37547.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/min/requirements/explicit_instantiation/3.cc
libstdc++-v3/testsuite/25_algorithms/min/requirements/explicit_instantiation/pod2.cc
libstdc++-v3/testsuite/25_algorithms/minmax/37547.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/minmax/requirements/explicit_instantiation/3.cc
libstdc++-v3/testsuite/25_algorithms/minmax/requirements/explicit_instantiation/pod2.cc