This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20687] namespace bug
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2005 19:51:16 -0000
- Subject: [Bug c++/20687] namespace bug
- References: <20050329171354.20687.jozef@syncad.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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