From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30910 invoked by alias); 12 Nov 2001 06:56:03 -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 30886 invoked by uid 71); 12 Nov 2001 06:56:01 -0000 Resent-Date: 12 Nov 2001 06:56:01 -0000 Resent-Message-ID: <20011112065601.30885.qmail@sourceware.cygnus.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, mkarras110@yahoo.com Received:(qmail 30830 invoked by uid 61); 12 Nov 2001 06:55:39 -0000 Message-Id:<20011112065539.30829.qmail@sourceware.cygnus.com> Date: Thu, 01 Nov 2001 08:42:00 -0000 From: mkarras110@yahoo.com Reply-To: mkarras110@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.2 (1.1.1.1.2.21) Subject: c++/4854: GCC 3.0.2 fails to flag ambiguous method definitions X-SW-Source: 2001-11/txt/msg00005.txt.bz2 List-Id: >Number: 4854 >Category: c++ >Synopsis: GCC 3.0.2 fails to flag ambiguous method definitions >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Nov 11 22:56:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Michael Arras >Release: 3.0.2 >Organization: >Environment: Linux 2.4 (i386) >Description: Gcc 3.0.2 (i686-pc-linux-gnu) has a quirk in which it does not catch ambiguous method definitions. If compiling class simple (with -c), 3.0.2 will fail in the assembly stage, citing "Error: Symbol xyzfuncEv already defined." Inlining avoids the quirk. Gcc 2.96-MDK8.1 does the right thing by informing the user. class simple { public: void func(); int func(); }; void simple::func() { } int simple::func() { return 0; } Michael Arras mkarras110@yahoo.com >How-To-Repeat: g++ -c simple.cxx >Fix: >Release-Note: >Audit-Trail: >Unformatted: