[Bug c++/16529] New: namespace-alias shall no be declared as the name of any other entity
boris at kolpackov dot net
gcc-bugzilla@gcc.gnu.org
Tue Jul 13 19:06:00 GMT 2004
According to 7.3.2/4
"A namespace-name or namespace-alias shall not be declared as the name of any
other entity in the same declarative region. A namespace-name defined at global
scope shall not be declared as the name of any other entity in any global scope
of the program. No diagnostic is required for a violation of this rule by
declarations in different translation units."
the following c++ is ill-formed:
namespace m
{
}
namespace n
{
namespace m
{
}
}
namespace m = n::m;
--
Summary: namespace-alias shall no be declared as the name of any
other entity
Product: gcc
Version: 3.4.1
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: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16529
More information about the Gcc-bugs
mailing list