This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13590] unexpected overload resolution
- From: "boris at kolpackov dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2004 21:56:04 -0000
- Subject: [Bug c++/13590] unexpected overload resolution
- References: <20040106205426.13590.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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