This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9166: [2003-01-03] C front end's type scoping not right
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, neil at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 8 Jan 2003 01:03:55 -0000
- Subject: Re: c/9166: [2003-01-03] C front end's type scoping not right
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, neil at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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