I'm not really sure if that was my patch, but I'm looking into it now.

Anyone else has any preferences except compatibility with gcc?

On Wed, Aug 29, 2012 at 5:16 PM, Eli Friedman <[email protected]>wrote:

> On Wed, Aug 29, 2012 at 4:40 PM, Alexander Kornienko <[email protected]>
> wrote:
> > No, there was no intention to change behavior. But could you provide more
> > details on this?
>
> Just compile it with clang; before, it would fail to compile:
> [...]gcc-4_2-testsuite/src/gcc.dg/cpp/mac-dir-1.c:27:15: error: too
> many arguments provided to function-like macro invocation
>      if (1 != f(2
>               ^
> [...]/gcc-4_2-testsuite/src/gcc.dg/cpp/mac-dir-1.c:27:15: error: use
> of undeclared identifier 'f'
>
> With your patch, it compiles without errors, but the compiled program
> aborts.  For comparison, with gcc, the program compiles and runs
> successfully.  (I'm pretty sure this is all undefined behavior per
> C99, but it would be nice to be consistent with gcc.)
>
> -Eli
>



-- 
Regards,
Alex
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to