[Bug c++/13590] unexpected overload resolution
boris at kolpackov dot net
gcc-bugzilla@gcc.gnu.org
Tue Jan 6 21:56:00 GMT 2004
------- Additional Comments From boris at kolpackov dot net 2004-01-06 21:55 -------
Subject: Re: unexpected overload resolution
After some more thinking I tend to believe that the two examples
above and the code below should at least behave in a consistent
manner (i.e. all fail or all compile):
namespace A
{
void f (char);
}
namespace B
{
void f (char);
}
namespace C
{
void f (int);
}
void g ()
{
using namespace A;
using namespace B;
using namespace C;
int i;
f (i);
}
GCC 3.3.3 compiles this example fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13590
More information about the Gcc-bugs
mailing list