This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13590] unexpected overload resolution


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]