From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6197 invoked by alias); 19 Sep 2008 07:33:00 -0000 Received: (qmail 4856 invoked by uid 48); 19 Sep 2008 07:31:40 -0000 Date: Fri, 19 Sep 2008 07:33:00 -0000 Subject: [Bug c++/37582] New: std::pow strange overload resolution X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jarausch at igpm dot rwth-aachen dot de" 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-09/txt/msg02222.txt.bz2 gcc is complaining about an ambiguous overloading of operator&& in the statement (last non-trivial line) return std::pow(a,2.0); where no such operator appears. (I haven't seen a macro definition of 'pow' which pulls in '&&') If I replace the statement above by return ::pow(a,2.0); the error disappears. The function 'pow' should be injected into namespace 'std' when doing #include or am I missing something? -- Summary: std::pow strange overload resolution Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jarausch at igpm dot rwth-aachen dot de GCC build triplet: i386 GCC host triplet: i386 GCC target triplet: i386 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37582