[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-22 Thread redi at gcc dot gnu.org
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

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116 Jonathan Wakely changed: What|Removed |Added Component|c++ |libstdc++ --- Comment #6 from

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-22 Thread redi at gcc dot gnu.org
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

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Version|unknown

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-05 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.9.4

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-05 Thread rs2740 at gmail dot com
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

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-05 Thread pinskia at gcc dot gnu.org
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

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69116 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug libstdc++/69116] [4.9/5/6 Regression] compile error when including valarray

2016-01-05 Thread pinskia at gcc dot gnu.org
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