This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++ 2.95.2 fails to reject an ambiguous overload
- To: "gcc bug list" <gcc-bugs at gcc dot gnu dot org>
- Subject: g++ 2.95.2 fails to reject an ambiguous overload
- From: " " <sebor at my-Deja dot com>
- Date: Sat, 22 Jan 2000 14:51:36 -0800
- Organization: My Deja Email (http://www.my-deja.com:80)
Hi,
the program below compiles with g++ 2.95.2 despite the ambiguity
between #1 and #2 (see 14.5.5.2, p5).
Thanks
Martin
template <class T>
void foo (T) { }
template <class T>
void foo (T&) { }
int main ()
{
bool b = false;
foo (b);
}
--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.