[Bug libstdc++/69116] [4.9/5 Regression] compile error when including valarray
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 10 11:26:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 10 11:25:33 2016
New Revision: 233265
URL: https://gcc.gnu.org/viewcvs?rev=233265&root=gcc&view=rev
Log:
Constrain std::valarray functions and operators
PR libstdc++/69116
* include/bits/valarray_before.h (__fun, __fun_with_valarray): Only
define result_type for types which can be safely used with valarrays.
* testsuite/26_numerics/valarray/69116.cc: New.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/26_numerics/valarray/69116.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/bits/valarray_before.h
More information about the Gcc-bugs
mailing list