]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/expr.c
re PR c/456 (constant expressions constraints (gcc.dg/c90-const-expr-1))
authorJoseph Myers <jsm@polyomino.org.uk>
Wed, 11 Feb 2004 23:50:45 +0000 (23:50 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 11 Feb 2004 23:50:45 +0000 (23:50 +0000)
commit32e8aa9af19ca5ba91539abc13017cd94778245c
treea6b7a99780e0752da0df83d39dc326af2f9b8261
parent3b8e0c9129b0ed3fe2e4aa5bc466df5348e2d5fd
re PR c/456 (constant expressions constraints (gcc.dg/c90-const-expr-1))

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.

From-SVN: r77676
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]