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]

Re: c/9166: [2003-01-03] C front end's type scoping not right


Synopsis: [2003-01-03] C front end's type scoping not right

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Jan  7 17:03:54 2003
State-Changed-Why:
    This has been analyzed before. For completeness, here's what
    icc7 says:
    tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -std=c99 -c -pedantic x.c
    x.c: In function `foo':
    x.c:5: warning: `struct bar' declared inside parameter list
    x.c:5: warning: its scope is only this definition or declaration, which is probably not what you want
    tmp/g> icc x.c
    x.c(5): warning #274: declaration is not visible outside of function
        extern void f( struct bar {double x, y;} );
                              ^
    
    x.c(8): warning #159: declaration is incompatible with previous "f" (declared at line 5)
      void f (struct bar );
           ^
    
    From the discussion, this should really be a change-request
    than a bug report.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9166


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