From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11692 invoked by alias); 22 Oct 2008 21:24:03 -0000 Received: (qmail 11549 invoked by uid 48); 22 Oct 2008 21:22:43 -0000 Date: Wed, 22 Oct 2008 21:24:00 -0000 Message-ID: <20081022212243.11548.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37582] [4.3 Regression] std::pow strange overload resolution In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg01487.txt.bz2 ------- Comment #5 from jakub at gcc dot gnu dot org 2008-10-22 21:22 ------- Couldn't cmath just use: template inline typename __gnu_cxx::__promote_2< - typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value - && __is_arithmetic<_Up>::__value, + typename __gnu_cxx::__enable_if::__value) + && bool(__is_arithmetic<_Up>::__value), _Tp>::__type, _Up>::__type pow(_Tp __x, _Up __y) { ... ? Though 4.4 cc1plus doesn't complain... -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bkoz at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37582