From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6210 invoked by alias); 21 Mar 2002 11:26:04 -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 6095 invoked by uid 71); 21 Mar 2002 11:26:02 -0000 Date: Thu, 21 Mar 2002 03:26:00 -0000 Message-ID: <20020321112602.6079.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Joseph S. Myers" Subject: Re: c/6024: GCC fails to diagnose mismatch of enum types in prototype/function Reply-To: "Joseph S. Myers" X-SW-Source: 2002-03/txt/msg00795.txt.bz2 List-Id: The following reply was made to PR c/6024; it has been noted by GNATS. From: "Joseph S. Myers" To: Cc: , Subject: Re: c/6024: GCC fails to diagnose mismatch of enum types in prototype/function Date: Thu, 21 Mar 2002 11:15:46 +0000 (GMT) On 21 Mar 2002 rearnsha@arm.com wrote: > 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. The types are compatible, which means these declarations are OK. (Unless you use -fshort-enums, in which case the type in the prototype disagrees with the promoted type from the non-prototype definition.) -- Joseph S. Myers jsm28@cam.ac.uk