This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8295: problem with method name log2
- From: aiguo_1997 at yahoo dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 21 Oct 2002 03:01:30 -0000
- Subject: c++/8295: problem with method name log2
- Reply-to: aiguo_1997 at yahoo dot com
>Number: 8295
>Category: c++
>Synopsis: problem with method name log2
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 20 20:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: aiguo_1997@yahoo.com
>Release: gcc version 3.2 20020818 (prerelease)
>Organization:
>Environment:
Cygwin
>Description:
Compiler fails to compile if there is a member function named log2() taking more than 1 parameters and the header <iostream> is included. Error says "gcc version 3.2 20020818 (prerelease)", possibly caused the the math macro log2(). No error if <iostream> is not included (possibly iostream uses log2 math macro).
>How-To-Repeat:
The following simple code will produce the error:
#include <iostream>
class myLog{
public:
inline virtual void log2( int x, int x2 ){}
};
int main()
{
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: