I have the same typedef in global scope and in the namespace. Also I have "using" clause for this namespace.
If both typedefs are in place further code doesn't see typedefed type at all. See example below. Yuri --begin code-- typedef int COUNT; namespace NN { typedef int COUNT; }; using namespace NN; COUNT xx; --end code-- gives an error: error: `COUNT' does not name a type -- Summary: namespace typedef kills non-namespace typedef when "using" it Product: gcc Version: 3.4.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: yuri at tsoft dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: FreeBSD on i386 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23594