[Bug c++/13377] New: unexpected behavior of namespace usage directive

boris at kolpackov dot net gcc-bugzilla@gcc.gnu.org
Wed Dec 10 17:18:00 GMT 2003


$ cat > test.cpp
namespace N1
{
  namespace N2
  {
  }
}

namespace N2
{
}

using namespace N1;
using namespace N2;

$ g++ --version
g++ (GCC) 3.3.2 (Debian)
$ g++ -c test.cpp
test.cpp:13: error: `<type error>' is not a namespace
$

-- 
           Summary: unexpected behavior of namespace usage directive
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boris at kolpackov dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-debian-gnu/linux
  GCC host triplet: i386-debian-gnu/linux
GCC target triplet: i386-debian-gnu/linux


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



More information about the Gcc-bugs mailing list