On 08/07/2014 12:41 PM, Paolo Carlini wrote:
Ok. Probably at some point I should review which kind of diagnostics the various implementations emit: for example *for enum27.C* currently clang talks about *narrowing*, the kind of of diagnostics we emit from chech_narrowing; EDG instead produces a something closer to our error.
I saw that, too. There used to be a separate constraint "if the initializing value of an enumerator cannot be represented by the underlying type, the program is ill-formed" that was removed because Richard Smith suggested it was redundant with the requirements for a converted constant expression, but clang's current behavior suggests that perhaps it wasn't so redundant...
The patch is OK, thanks.