Re: [PATCH] PR78991 make __gnu_cxx::__ops constructors explicit

2017-01-09 Thread Jonathan Wakely
On 09/01/17 11:05 +, Kyrill Tkachov wrote: On 09/01/17 10:47, Jonathan Wakely wrote: On 09/01/17 10:39 +, Kyrill Tkachov wrote: Hi Jonathan, On 06/01/17 12:40, Jonathan Wakely wrote: This solves a problem when using libstdc++ with Clang, due to Clang more eagerly instantiating conste

Re: [PATCH] PR78991 make __gnu_cxx::__ops constructors explicit

2017-01-09 Thread Jonathan Wakely
On 09/01/17 10:47 +, Jonathan Wakely wrote: On 09/01/17 10:39 +, Kyrill Tkachov wrote: Hi Jonathan, On 06/01/17 12:40, Jonathan Wakely wrote: This solves a problem when using libstdc++ with Clang, due to Clang more eagerly instantiating constexpr function templates during argument dedu

Re: [PATCH] PR78991 make __gnu_cxx::__ops constructors explicit

2017-01-09 Thread Kyrill Tkachov
On 09/01/17 10:47, Jonathan Wakely wrote: On 09/01/17 10:39 +, Kyrill Tkachov wrote: Hi Jonathan, On 06/01/17 12:40, Jonathan Wakely wrote: This solves a problem when using libstdc++ with Clang, due to Clang more eagerly instantiating constexpr function templates during argument deduction

Re: [PATCH] PR78991 make __gnu_cxx::__ops constructors explicit

2017-01-09 Thread Jonathan Wakely
On 09/01/17 10:39 +, Kyrill Tkachov wrote: Hi Jonathan, On 06/01/17 12:40, Jonathan Wakely wrote: This solves a problem when using libstdc++ with Clang, due to Clang more eagerly instantiating constexpr function templates during argument deduction. G++ has some shortcuts to avoid this probl

Re: [PATCH] PR78991 make __gnu_cxx::__ops constructors explicit

2017-01-09 Thread Kyrill Tkachov
Hi Jonathan, On 06/01/17 12:40, Jonathan Wakely wrote: This solves a problem when using libstdc++ with Clang, due to Clang more eagerly instantiating constexpr function templates during argument deduction. G++ has some shortcuts to avoid this problem, but Clang doesn't, and it's not clear that i