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

bangerth@dealii.org bangerth@dealii.org
Mon Jan 13 05:17:00 GMT 2003


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



More information about the Gcc-bugs mailing list