diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-04-26 00:30:10 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2009-04-26 00:30:10 +0100 |
commit | 6895bac810775d772310a2772b7eafd0ac944b5f (patch) | |
tree | 35521b0d5e431f68faee7dbbfd427e26918ae543 /gcc/df-scan.c | |
parent | 24070fcb42eca4e9df8129f9c3ffb3cf71379fa5 (diff) | |
download | gcc-6895bac810775d772310a2772b7eafd0ac944b5f.zip gcc-6895bac810775d772310a2772b7eafd0ac944b5f.tar.gz gcc-6895bac810775d772310a2772b7eafd0ac944b5f.tar.bz2 |
c-decl.c (build_enumerator): Allow values folding to integer constants but not integer constant expressions...
* c-decl.c (build_enumerator): Allow values folding to integer
constants but not integer constant expressions with a pedwarn if
pedantic.
testsuite:
* gcc.dg/enum-const-1.c, gcc.dg/enum-const-2.c,
gcc.dg/enum-const-3.c: New tests.
* gcc.dg/gnu89-const-expr-1.c, gcc.dg/gnu99-const-expr-1.c: Use
-pedantic-errors. Update expected diagnostics.
From-SVN: r146789
Diffstat (limited to 'gcc/df-scan.c')
0 files changed, 0 insertions, 0 deletions