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++/20687] namespace bug


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-29 19:51 -------
The reduced testcase:
namespace dd {
    struct t1 {};
}
namespace ff {
  using namespace dd;
}
struct t1 { };
namespace ff
{
 typedef t1 t2;
}


But the use of t1 is ambiguous really as "using namespace" is not as strong as defining the t1 in the 
namespace ff or doing a "using dd::t1" in the namespace ff.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20687


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