From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2726 invoked by alias); 6 Nov 2002 17:26:05 -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 2710 invoked by uid 71); 6 Nov 2002 17:26:04 -0000 Date: Wed, 06 Nov 2002 09:26:00 -0000 Message-ID: <20021106172604.2708.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: libstdc++/3181: Unable to use sqrt,cos,sin,... with int argument. Reply-To: Wolfgang Bangerth X-SW-Source: 2002-11/txt/msg00301.txt.bz2 List-Id: The following reply was made to PR libstdc++/3181; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-bugs@gcc.gnu.org, Cc: gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/3181: Unable to use sqrt,cos,sin,... with int argument. Date: Wed, 6 Nov 2002 11:21:31 -0600 (CST) Benjamin, 3181 is about the following: std::sqrt(1) and int i; std::sqrt(i) giving overload resolution ambiguities. Since the overloads are only provided for floating point types, this is not surprising, so I would say that this is actually standards conforming behavior, right? In this case, we should close this report. Regards Wolfgang ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ticam.utexas.edu www: http://www.ticam.utexas.edu/~bangerth