This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14805] [3.5 Regression] file with structures and external decls at function scope is wrongly rejected
- From: "pinskia 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 Apr 2004 02:23:54 -0000
- Subject: [Bug c/14805] [3.5 Regression] file with structures and external decls at function scope is wrongly rejected
- References: <20040401021739.14805.geoffk@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-01 02:23 -------
Is this really valid C, with ICC 6.0 in strict mode, I get an error:
t.c
t.c(17): error: declaration is incompatible with previous "foo" (declared at line 6)
extern struct bar *foo;
^
compilation aborted for t.c (code 2)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Summary|file with structures and |[3.5 Regression] file with
|external decls at function |structures and external
|scope is wrongly rejected |decls at function scope is
| |wrongly rejected
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14805