Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-04-26 | c-decl.c (build_enumerator): Allow values folding to integer constants but ↵ | Joseph Myers | 1 | -0/+8 | |
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 |