Re: [patch] libstdc++/69116 Constrain std::valarray functions and operators

2016-02-10 Thread Jonathan Wakely
On 22/01/16 21:15 +, Jonathan Wakely wrote: This is a regression, caused by the front end starting to diagnose the invalid library instantiations more eagerly. The fix seems simple and safe, so I plan to backport it to the branches too. Committed to the branches too.

[patch] libstdc++/69116 Constrain std::valarray functions and operators

2016-01-22 Thread Jonathan Wakely
The example in the PR is a sneaky little problem. When is included the following overload is declared: template _Expr operator<<(const _Tp& __t, const valarray<_Tp>& __v); This is a candidate function for any "a << b" expression with namespace std as an associated namespace. In order to do over