GCC rejects the following with -Wall -pedantic-errors but accepts it with -ansi -pedantic-errors, which seems odd.
typedef enum { foo } int_t; int main (int_t argc, char **argv) { return 0; } -- Summary: Command line switches controlling acceptance of main Product: gcc Version: 3.3.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: neil at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21857