From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21415 invoked by alias); 21 Mar 2002 11:06: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 21384 invoked by uid 71); 21 Mar 2002 11:06:00 -0000 Resent-Date: 21 Mar 2002 11:06:00 -0000 Resent-Message-ID: <20020321110600.21383.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, rearnsha@arm.com Received:(qmail 14415 invoked by uid 61); 21 Mar 2002 10:59:42 -0000 Message-Id:<20020321105942.14408.qmail@sources.redhat.com> Date: Thu, 21 Mar 2002 03:06:00 -0000 From: rearnsha@arm.com Reply-To: rearnsha@arm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/6024: GCC fails to diagnose mismatch of enum types in prototype/function X-SW-Source: 2002-03/txt/msg00794.txt.bz2 List-Id: >Number: 6024 >Category: c >Synopsis: GCC fails to diagnose mismatch of enum types in prototype/function >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Thu Mar 21 03:06:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Richard Earnshaw >Release: unknown-1.0 >Organization: >Environment: All gcc targets >Description: Gcc fails to diagnose when an enum type in a prototype fails to match the enum type in a function declation. >How-To-Repeat: Compile the following code, GCC compiles it without error: it should generate a diagnostic. enum e1 {a, b}; enum e2 {c, d}; void f(enum e1); void f(x) enum e2 x; { return; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: