public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <oliva@dcc.unicamp.br>
To: Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
Cc: egcs@cygnus.com
Subject: Re: Using declarations
Date: Mon, 16 Mar 1998 20:25:00 -0000	[thread overview]
Message-ID: <orpvjm2w5z.fsf@iguacu.dcc.unicamp.br> (raw)
In-Reply-To: <199803152122.WAA24592@mira.isdn.cs.tu-berlin.de>

Martin von Loewis writes:

> I'm still not certain about the exact semantics of using declarations.

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

In my interpretation, a using declaration brings the current
definition of the specified name into the current namespace,
therefore, the redeclaration would bring the declarations of both
A::f(char) and A::f(int) into the global namespace.

But you're right, this is not explicitly stated in (my non-final copy
of) the Standard.  Time for one more question in comp.std.c++

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil

      reply	other threads:[~1998-03-16 20:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-15 15:15 Martin von Loewis
1998-03-16 20:25 ` Alexandre Oliva [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=orpvjm2w5z.fsf@iguacu.dcc.unicamp.br \
    --to=oliva@dcc.unicamp.br \
    --cc=egcs@cygnus.com \
    --cc=martin@mira.isdn.cs.tu-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).