public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly
@ 2005-03-28 19:34 dberlin at gcc dot gnu dot org
2005-03-28 19:35 ` [Bug c/20672] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-03-28 19:34 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20672] [4.1 Regression] New C parser doesn't check whether functions that end files are closed properly
2005-03-28 19:34 [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly dberlin at gcc dot gnu dot org
@ 2005-03-28 19:35 ` pinskia at gcc dot gnu dot org
2005-03-29 18:55 ` cvs-commit at gcc dot gnu dot org
2005-03-29 19:10 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-28 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-28 19:35 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org, jsm28 at gcc dot gnu
| |dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2005-03-28 19:35:45
date| |
Summary|New C parser doesn't check |[4.1 Regression] New C
|whether functions that end |parser doesn't check whether
|files are closed properly |functions that end files are
| |closed properly
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20672
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20672] [4.1 Regression] New C parser doesn't check whether functions that end files are closed properly
2005-03-28 19:34 [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly dberlin at gcc dot gnu dot org
2005-03-28 19:35 ` [Bug c/20672] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-29 18:55 ` cvs-commit at gcc dot gnu dot org
2005-03-29 19:10 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-03-29 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-29 18:55 -------
Subject: Bug 20672
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jsm28@gcc.gnu.org 2005-03-29 18:54:45
Modified files:
gcc : ChangeLog c-parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.dg: pr20672-1.c
Log message:
PR c/20672
* c-parser.c (c_parser_compound_statement_nostart): Give error
message for EOF instead of just setting parser->error.
testsuite:
* gcc.dg/pr20672-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8015&r2=2.8016
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-parser.c.diff?cvsroot=gcc&r1=2.8&r2=2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5232&r2=1.5233
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr20672-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20672
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/20672] [4.1 Regression] New C parser doesn't check whether functions that end files are closed properly
2005-03-28 19:34 [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly dberlin at gcc dot gnu dot org
2005-03-28 19:35 ` [Bug c/20672] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-29 18:55 ` cvs-commit at gcc dot gnu dot org
@ 2005-03-29 19:10 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-29 19:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-29 19:10 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20672
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-29 19:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 19:34 [Bug c/20672] New: New C parser doesn't check whether functions that end files are closed properly dberlin at gcc dot gnu dot org
2005-03-28 19:35 ` [Bug c/20672] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-29 18:55 ` cvs-commit at gcc dot gnu dot org
2005-03-29 19:10 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).