public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8295: problem with method name log2
@ 2002-10-20 20:06 aiguo_1997
  0 siblings, 0 replies; only message in thread
From: aiguo_1997 @ 2002-10-20 20:06 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-21  3:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20 20:06 c++/8295: problem with method name log2 aiguo_1997

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).