[C++ Patch] PR 16603
Paolo Carlini
paolo.carlini@oracle.com
Sun Jan 1 20:19:00 GMT 2012
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. Now, the "funny" thing is, I
don't see why we should be calling it at all! Thus I applied the below
and booted it all languages (minus Ada) on x86_64-linux multilib and
tested C/C++ (the other languages in progress). Can you imagine a reason
why it may not be Ok?
Thanks,
Paolo.
//////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_16603
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120101/baff7583/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_16603
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120101/baff7583/attachment-0001.ksh>
More information about the Gcc-patches
mailing list