diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-06-19 16:29:49 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-06-19 16:29:49 +0100 |
commit | 74fda2dc9f6198c23da01303a51d06ff69008e31 (patch) | |
tree | cf7d2bc519aa3ce55889d822757c0085f6b61f57 /gcc/fortran/misc.c | |
parent | 4349775a30600906f5811ba7c743a5c22bdb3d7d (diff) | |
download | gcc-74fda2dc9f6198c23da01303a51d06ff69008e31.zip gcc-74fda2dc9f6198c23da01303a51d06ff69008e31.tar.gz gcc-74fda2dc9f6198c23da01303a51d06ff69008e31.tar.bz2 |
Fix value category bugs in std::reduce
* include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
category used in invocable check.
(reduce(Iter, Iter, T)): Pass initial value as rvalue.
* testsuite/26_numerics/reduce/2.cc: New test.
From-SVN: r272477
Diffstat (limited to 'gcc/fortran/misc.c')
0 files changed, 0 insertions, 0 deletions