From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10365 invoked by alias); 4 Jan 2003 00:36:01 -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 10333 invoked by uid 71); 4 Jan 2003 00:36:00 -0000 Resent-Date: 4 Jan 2003 00:36:00 -0000 Resent-Message-ID: <20030104003600.10332.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, neil@gcc.gnu.org Received: (qmail 8625 invoked by uid 61); 4 Jan 2003 00:32:08 -0000 Message-Id: <20030104003208.8624.qmail@sources.redhat.com> Date: Sat, 04 Jan 2003 00:36:00 -0000 From: neil@gcc.gnu.org Reply-To: neil@gcc.gnu.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/9166: [2003-01-03] C front end's type scoping not right X-SW-Source: 2003-01/txt/msg00268.txt.bz2 List-Id: >Number: 9166 >Category: c >Synopsis: [2003-01-03] C front end's type scoping not right >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Jan 03 16:36:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: neil@gcc.gnu.org >Release: GCC 3.4 and earlier >Organization: >Environment: >Description: /* Compile the code snippet below with -pedantic. The code is illegal because the function f is redeclared with an incompatible prototype, but GCC doesn't winge. */ struct bar {int x, y;}; void foo () { extern void f( struct bar {double x, y;} ); } void f (struct bar ); >How-To-Repeat: >Fix: I doubt it's easy with the current code. Best idea is to clean up the front-end's handling of scopes; it's too messy and obfuscated. >Release-Note: >Audit-Trail: >Unformatted: