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
Showing
- gcc/ChangeLog 6 additions, 0 deletionsgcc/ChangeLog
- gcc/cppexp.c 2 additions, 1 deletiongcc/cppexp.c
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/cpp/c90-if-comma-1.c 11 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/c90-if-comma-1.c
- gcc/testsuite/gcc.dg/cpp/c99-if-comma-1.c 11 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/c99-if-comma-1.c
Loading
Please register or sign in to comment