Bug#122103: [Bug other/9071] Warning for blocks not closed in same file as opened in
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9071
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-05-28 02:41:14
date| |
------- Additional Comments From pinskia@physics.uc.edu 2003-05-28 02:41 -------
Actually is very easy to show:
//header.h
struct A
{
int i;
//forgot to close the struct.
//file.c
#include "header.h"
int f(struct A *a)
{
a->i=0;
}
gcc file.c
file.c:4: error: field `f' declared as a function
file.c:4: warning: no semicolon at end of struct or union
file.c:4: error: parse error before '{' token
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
Reply to: