This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 2.91.40: missing features in namespaces
- To: micschne at stud dot uni-frankfurt dot de
- Subject: Re: 2.91.40: missing features in namespaces
- From: Todd Vierling <tv at pobox dot com>
- Date: Mon, 15 Jun 1998 10:53:31 -0400 (EDT)
- cc: "egcs-bugs at cygnus dot com" <egcs-bugs at cygnus dot com>
On Mon, 15 Jun 1998 micschne@stud.uni-frankfurt.de wrote:
: 1) namespace directives and declarations should
: be allowed within a function body (s. [1] 8.2.2,
: [1] 8.2.3) :
: int f()
: {
: using namespace std; // egcs: "parse error"
: 2) If we call a function `f' from namespace `ns' with
: an argument `a' of type `T' declared in the same namespace,
: no namespace resolution should be necessary ([1] 8.2.6) :
: int g(const ns::T& a)
: {
If (1) is taken care of, (2) follows easily simply by having an implicit
"using namespace ns;" caused by the argument T that is part of namespace ns.
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)