[Bug c/456] constant expressions constraints
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-11 23:50 -------
Subject: Bug 456
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2004-02-11 23:50:46
Modified files:
gcc : ChangeLog cppexp.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg/cpp: c90-if-comma-1.c c99-if-comma-1.c
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2750&r2=2.2751
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppexp.c.diff?cvsroot=gcc&r1=1.144&r2=1.145
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3491&r2=1.3492
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/c90-if-comma-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cpp/c99-if-comma-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=456
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: