This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6508: compilation error when using "min< double >" as function parameter
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, yap_noel at olf dot com, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 8 May 2002 01:11:03 +0200
- Subject: Re: c++/6508: compilation error when using "min< double >" as function parameter
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