Re: [C++ Patch / RFC] PR 51242

2013-02-15 Thread Paolo Carlini
On 02/15/2013 06:40 PM, Jason Merrill wrote: The patch is OK. To deal with the warning, I would suggest putting the constrained type somewhere other than ENUM_UNDERLYING_TYPE that's shared between enums with fixed and non-fixed underlying types; having it in ENUM_UNDERLYING_TYPE isn't really c

Re: [C++ Patch / RFC] PR 51242

2013-02-15 Thread Jason Merrill
The patch is OK. To deal with the warning, I would suggest putting the constrained type somewhere other than ENUM_UNDERLYING_TYPE that's shared between enums with fixed and non-fixed underlying types; having it in ENUM_UNDERLYING_TYPE isn't really correct anyway. Jason

[C++ Patch / RFC] PR 51242

2012-11-26 Thread Paolo Carlini
Hi, this PR is about the rejection (in C++11 mode of course) of: enum class MyEnum { A = 1 }; struct MyClass { MyEnum Field1 : 3; }; whereas the corresponding unscoped enum case already works. As noticed by Jon, it seems that the below straightforward patchlet is enough to solve the probl