This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly
- From: "dberlin 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 Mar 2005 19:34:39 -0000
- Subject: [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following will compile fine:
int main(void)
{
int a;
(Note the lack of closing brace)
--
Summary: New C parser doesn't check whether functions that end
files are closed properly
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dberlin at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20672