This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23594] New: namespace typedef kills non-namespace typedef when "using" it
- From: "yuri at tsoft dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2005 12:58:43 -0000
- Subject: [Bug c++/23594] New: namespace typedef kills non-namespace typedef when "using" it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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