Topic: Defect Report: Conflicting definitions of "global namespace scope
Author: Greg Lutz <greglutz@home.com>
Date: 1999/09/20 Raw View
[ moderator's note: forwarded to the C++ Committee for handling. -sdc ]
Paragraph 7.3 [basic.namespace] of the Standard says:
A name declared outside all named namespaces, blocks (6.3) and
classes (clause 9) has global namespace
scope (3.3.5).
But 3.3.5 [basic.scope.namespace] says:
A name declared outside all named or unnamed namespaces (7.3),
blocks (6.3), function declarations
(8.3.5), function definitions (8.4) and classes (clause 9) has global
namespace scope (also called global
scope).
7.3 should evidently be changed to match the wording in 3.3.5 -- the
unnamed namespace is *not* global scope.
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]