public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Using declarations
@ 1998-03-15 15:15 Martin von Loewis
  1998-03-16 20:25 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Martin von Loewis @ 1998-03-15 15:15 UTC (permalink / raw)
  To: egcs

I'm still not certain about the exact semantics of using declarations.
It seems to me that

namespace A{
  void f();
}

using A::f;

namespace A{
  void f(int);
}

using A::f;

void g(){
  f(4);
}

should be illegal. The redeclaration of 'using A::f;' is certainly
correct, however, the selected set of declarations should be the one
found at the first declaration.

If A::f(int) is visible inside ::g, please let me know why.

TIA,
Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-16 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-15 15:15 Using declarations Martin von Loewis
1998-03-16 20:25 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).