This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Some shadow fixes.


On Thu, May 18, 2000 at 08:41:12PM -0700, Steven King wrote:
> On Thu, 18 May 2000, Nathan Myers wrote:
> > However, I think the sequence
> >   using std::abs;
> >   using std::abs;
> > is not legal C++; hence my suggested #ifdefs.  
> 
>   At namespace scope I think it should be okay:  7.3.3/8
> 
> "8 A using-declaration is a declaration and can therefore be used repeatedly
> where (and only where) multiple declarations are allowed. 
> 
> "9 The entity declared by a using-declaration shall be known in the context
> using it according to its definition at the point of the using-declaration.
> Definitions added to the namespace after the using-declaration are not
> considered when a use of the name is made. 
> "
> thus without the another using declaration, it won't work.

You are correct, I was mistaken.  Sorry for the confusion.
The #ifdef blocks would not be correct.

I have (re)submitted the correct bug report to the gcc-bugs list.

Nathan Myers
ncm at cantrip dot org


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