This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.91.40: missing features in namespaces


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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]