[cfe-commits] r60331 - /cfe/trunk/test/Sema/i-c-e3.c

Anders Carlsson andersca at mac.com
Mon Dec 1 07:59:54 PST 2008


1 dec 2008 kl. 04.33 skrev Eli Friedman:

> On Sun, Nov 30, 2008 at 10:27 PM, Anders Carlsson <andersca at mac.com>  
> wrote:
>> Author: andersca
>> Date: Mon Dec  1 00:27:38 2008
>> New Revision: 60331
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=60331&view=rev
>> Log:
>> Fix test. (0 && (a(),1)) is a valid I-C-E according to C99.
>
> No, it isn't.  Note the requirement about operands; "a" is a global,
> which isn't allowed.
>

Ah, I see - I got ICEs and regular constant expressions mixed up.  
Maybe the test should fail when in strict C (not gnu) mode?

Anders


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081201/3863610a/attachment.bin>


More information about the cfe-commits mailing list