From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14873 invoked by alias); 8 Jan 2003 01:03:56 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14851 invoked by uid 61); 8 Jan 2003 01:03:55 -0000 Date: Wed, 08 Jan 2003 01:03:00 -0000 Message-ID: <20030108010355.14850.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, neil@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, neil@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/9166: [2003-01-03] C front end's type scoping not right X-SW-Source: 2003-01/txt/msg00492.txt.bz2 List-Id: 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