On 07/09/2015 03:36 PM, Paolo Carlini wrote:
Finally, we do *not* reject, as we should, the line:

template<> enum A<char>::E : char { echar };

Then, overall, is it Ok to simply suppress the pedwarn in C++11, and
xfail for now the error? Should I open a new, separate bug report about
the latter? (note that the issue, failing to reject an explicit
specialization after instantiation, doesn't sound new to me and seems
more general than enum-related issues...)

I don't think it's a more general issue. I note that the specialization seems to append to the enumerator list somehow:

int i = A<char>::eT + A<char>::echar; // accepted?!?

I think we should fix this before we remove the pedwarn.

Jason

Reply via email to