This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14805] [3.5 Regression] file with structures and external decls at function scope is wrongly rejected


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]