OSDN Git Service

PR c/456
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Feb 2004 23:50:45 +0000 (23:50 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Feb 2004 23:50:45 +0000 (23:50 +0000)
commit638ed81f292c4f4bad9ba0a40b3b547965f81a32
treea6b7a99780e0752da0df83d39dc326af2f9b8261
parentd3cd9bdec0a817502f9f19b48d5fb7699159077c
PR c/456
* cppexp.c (num_binary_op): Don't allow comma operators in #if
constant expressions at all outside C99 mode if pedantic.

testsuite:
* gcc.dg/cpp/c90-if-comma-1.c, gcc.dg/cpp/c99-if-comma-1.c:
New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77676 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cppexp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/c90-if-comma-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/c99-if-comma-1.c [new file with mode: 0644]