c++/6508: compilation error when using "min< double >" as function parameter

Reichelt reichelt@igpm.rwth-aachen.de
Tue May 7 15:39:00 GMT 2002


Hi,

the bug can be reproduced with the following code snippet:

--------------------------snip here---------------------
template<typename T> void foo(T) { }
void foo() { }

template < typename Fn >
void bar(Fn f)
{
    f();
}

void quux()
{
    bar(foo);
}
--------------------------snip here---------------------

The bug is still present in gcc 3.1 20020506 (prerelease).

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6508




More information about the Gcc-bugs mailing list