From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2478 invoked by alias); 6 Dec 2005 17:48:56 -0000 Received: (qmail 2466 invoked by uid 48); 6 Dec 2005 17:48:54 -0000 Date: Tue, 06 Dec 2005 17:48:00 -0000 Message-ID: <20051206174854.2465.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/25278] g++ seems to ignore an overloaded function. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-12/txt/msg00576.txt.bz2 List-Id: ------- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-06 17:48 ------- No, GCC is correct to reject this code. What is happening is that the overloaded set for the ChangeEndianness in the second ChangeEndianness is only the first and the second so there is no way to consider the third (and the one which you want) to be called. This is the correct standards demanding behavior. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25278