2.91.40: missing features in namespaces

Todd Vierling tv@pobox.com
Mon Jun 15 07:54:00 GMT 1998


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)




More information about the Gcc-bugs mailing list