https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #8 from Jonathan Wakely ---
Author: redi
Date: Fri Jan 22 21:15:41 2016
New Revision: 232748
URL: https://gcc.gnu.org/viewcvs?rev=232748=gcc=rev
Log:
Constrain std::valarray functions and operators
PR libstdc++/69116
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
Jonathan Wakely changed:
What|Removed |Added
Component|c++ |libstdc++
--- Comment #6 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #7 from Jonathan Wakely ---
The problem overload is this one:
template
inline _Expr<_BinClos<__shift_left, _Constant, _ValArray, _Tp, _Tp>, typename
__fun<__shift_left, _Tp>::result_type>
operator <<(const _Tp& __t, const
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
Version|unknown
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |4.9.4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #2 from TC ---
I don't think this has anything to do with `end`. Consider the following code:
#include
template struct foo {
T f();
void g(T);
};
template void operator<<(const T&, const foo&) {}
struct x : public
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #3 from Andrew Pinski ---
(In reply to TC from comment #2)
> Deduction for this operator<< function template succeeds: `T` is deduced to
> be `x` from the left operand; the right operand is a non-deduced context
> because the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
Jonathan Wakely changed:
What|Removed |Added
Keywords||rejects-valid
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116
--- Comment #1 from Andrew Pinski ---
It is trying to instantiate one of the std::end with valarray
Like:
template
inline const _Tp*
end(const valarray<_Tp>& __va)
{ return std::__addressof(__va[0]) + __va.size(); }
This does not
10 matches
Mail list logo