This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21857] New: Command line switches controlling acceptance of main
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2005 02:37:18 -0000
- Subject: [Bug c/21857] New: Command line switches controlling acceptance of main
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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