On 01/01/2012 03:17 PM, Paolo Carlini wrote:
Andrew noticed that the problem is in the perform_integral_promotions
call at the beginning of build_enumerator. Now, the "funny" thing is, I
don't see why we should be calling it at all!
Indeed, 7.2 seems pretty clear that we shouldn't. OK.
Jason
Hi,
in the audit trail of this *old* PR, which is about the miscompilation of:
char const c = 'q';
enum
{
x = c,
y = sizeof(x)
};
int test[y == sizeof(char) ? 1 : -1];
Andrew noticed that the problem is in the perform_integral_promotions
call at the beginning of build_enumerator.