public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/37582] [4.3 Regression] std::pow strange overload resolution Date: Wed, 22 Oct 2008 21:24:00 -0000 [thread overview] Message-ID: <20081022212243.11548.qmail@sourceware.org> (raw) In-Reply-To: <bug-37582-847@http.gcc.gnu.org/bugzilla/> ------- Comment #5 from jakub at gcc dot gnu dot org 2008-10-22 21:22 ------- Couldn't cmath just use: template<typename _Tp, typename _Up> inline typename __gnu_cxx::__promote_2< - typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value - && __is_arithmetic<_Up>::__value, + typename __gnu_cxx::__enable_if<bool(__is_arithmetic<_Tp>::__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
next prev parent reply other threads:[~2008-10-22 21:24 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-09-19 7:33 [Bug c++/37582] New: " jarausch at igpm dot rwth-aachen dot de 2008-09-19 7:34 ` [Bug c++/37582] " jarausch at igpm dot rwth-aachen dot de 2008-09-19 7:36 ` jarausch at igpm dot rwth-aachen dot de 2008-09-19 9:35 ` [Bug c++/37582] [4.3 Regression] " rguenth at gcc dot gnu dot org 2008-09-22 19:57 ` pinskia at gcc dot gnu dot org 2008-10-22 21:24 ` jakub at gcc dot gnu dot org [this message] 2008-12-11 11:47 ` rguenth at gcc dot gnu dot org 2008-12-11 17:21 ` hjl dot tools at gmail dot com 2008-12-11 17:26 ` jakub at gcc dot gnu dot org 2008-12-11 19:56 ` [Bug libstdc++/37582] " jakub at gcc dot gnu dot org 2008-12-11 20:06 ` paolo dot carlini at oracle dot com 2008-12-11 20:35 ` jakub at gcc dot gnu dot org 2008-12-12 8:48 ` jakub at gcc dot gnu dot org 2008-12-12 8:54 ` jakub at gcc dot gnu dot org 2008-12-12 11:24 ` jakub at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20081022212243.11548.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).