I would really like this to be possible, would help me a lot in getting rid of
<cstddef> uses in the library, and it is indeed possible with ICC and Comeau,
and SunStudio, but GCC doesn't like it, for some reason.

typedef unsigned my_size_t;

namespace my
{
  typedef unsigned my_size_t;
}

using namespace my;
my_size_t    s1;  // error

namespace my2
{
  using namespace my;
  my_size_t  s1;  // error
}

I'm pretty sure to have seen it already, still... Jason what do you think?


-- 
           Summary: Ambiguity with typedef and using namespace
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paolo dot carlini at oracle dot com


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

Reply via email to