Re: C++/c-common PATCH to conversion from scoped enum to bool (part of 48450)

2011-04-11 Thread Jason Merrill
On 04/07/2011 05:41 PM, Jason Merrill wrote: PR 48450 has to do with SFINAE bugs, but one of them turns out to be a different sort of bug: we were failing to convert from a non-constant value of scoped enum type to bool, because that conversion was doing a != 0, which requires an implicit convers

C++/c-common PATCH to conversion from scoped enum to bool (part of 48450)

2011-04-07 Thread Jason Merrill
PR 48450 has to do with SFINAE bugs, but one of them turns out to be a different sort of bug: we were failing to convert from a non-constant value of scoped enum type to bool, because that conversion was doing a != 0, which requires an implicit conversion to int. So now we explicitly convert t