This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/35104] New: cmath do not undef log2
- From: "ppershing at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Feb 2008 14:36:53 -0000
- Subject: [Bug libstdc++/35104] New: cmath do not undef log2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I found this bug in cygwin's gcc, but it is probably
general problem.
#include <cmath> fails to undefine math.h's macro log2.
I personally thinks, that like other math functions,
log2 shoud be function in namespace std, not macro.
(Bug found, when I was defining own int log2(int) function
in class)
--
Summary: cmath do not undef log2
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ppershing at gmail dot com
GCC host triplet: all
GCC target triplet: all
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35104