public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23594] New: namespace typedef kills non-namespace typedef when "using" it
@ 2005-08-27 13:53 yuri at tsoft dot com
  2005-08-27 15:23 ` [Bug c++/23594] namespace typedef and global typedef name the same type, using kills global pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: yuri at tsoft dot com @ 2005-08-27 13:53 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-06-02 19:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23594-6649@http.gcc.gnu.org/bugzilla/>
2005-11-09 17:03 ` [Bug c++/23594] namespace typedef and global typedef name the same type, using kills global pinskia at gcc dot gnu dot org
2005-11-09 17:25 ` pinskia at gcc dot gnu dot org
2010-06-02 17:37 ` paolo dot carlini at oracle dot com
2010-06-02 18:24 ` jason at gcc dot gnu dot org
2010-06-02 19:25 ` jason at gcc dot gnu dot org
2005-08-27 13:53 [Bug c++/23594] New: namespace typedef kills non-namespace typedef when "using" it yuri at tsoft dot com
2005-08-27 15:23 ` [Bug c++/23594] namespace typedef and global typedef name the same type, using kills global pinskia at gcc dot gnu dot org
2005-08-27 17:05 ` yuri at tsoft dot com
2005-08-27 18:37 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).