https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 10 11:10:58 2016
New Revision: 233263

URL: https://gcc.gnu.org/viewcvs?rev=233263&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-5-branch/libstdc++-v3/testsuite/26_numerics/valarray/69116.cc
Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/bits/valarray_before.h

Reply via email to