This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21794] New: GCC accepts invalid code
- 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: 28 May 2005 02:00:04 -0000
- Subject: [Bug c/21794] New: GCC accepts invalid code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc -Wall -ansi -pedantic -fsyntax-only
erroneously accepts the following:
void bar(void);
void (*baz(void))(void) { return bar ? bar: (void *)(void *) 0; }
--
Summary: GCC accepts invalid code
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
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=21794