Re: [PATCH] Fix PR c++/70241 (inconsistent access with in-class enumeration)

2016-04-25 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/70241 (inconsistent access with in-class enumeration)

2016-04-25 Thread Patrick Palka
On Sun, Apr 17, 2016 at 2:01 PM, Patrick Palka wrote: > When an in-class unscoped enumeration is defined out-of-line its > enumerators currently don't inherit the access of the enumeration. This > patch makes the access of the enumerations defined out-of-line match the > access of the enumerator.

[PATCH] Fix PR c++/70241 (inconsistent access with in-class enumeration)

2016-04-17 Thread Patrick Palka
When an in-class unscoped enumeration is defined out-of-line its enumerators currently don't inherit the access of the enumeration. This patch makes the access of the enumerations defined out-of-line match the access of the enumerator. Also, we currently don't check that redeclarations of in-clas