From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25503 invoked by alias); 10 Dec 2002 22:28:07 -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 25475 invoked by uid 61); 10 Dec 2002 22:28:06 -0000 Date: Tue, 10 Dec 2002 14:28:00 -0000 Message-ID: <20021210222806.25474.qmail@sources.redhat.com> To: andre@kiwisound.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, andre@kiwisound.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8821: gcc 3.2 problem with overloaded inherited operator X-SW-Source: 2002-12/txt/msg00588.txt.bz2 List-Id: Synopsis: gcc 3.2 problem with overloaded inherited operator State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Dec 10 14:28:05 2002 State-Changed-Why: I can confirm that this problem exists. However, I am not sure whether it is really a bug: the operator you want to call is simply hidden by the operator in the derived class. What I don't know is how lookup of member operators happen -- if the same rule applies as for virtual functions, then the operator in the base class is rightfully hidden; if not, then this is a bug. On the other hand, if virtual function semantics apply, then a function similar to -Woverloaded-virtual should exist. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8821