public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: bangerth@dealii.org
To: cludwig@cdc.informatik.tu-darmstadt.de, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Subject: Re: c++/7522: access by friend function's default argument
Date: Wed, 30 Oct 2002 15:32:00 -0000	[thread overview]
Message-ID: <20021030233204.1003.qmail@sources.redhat.com> (raw)

Synopsis: access by friend function's default argument

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Wed Oct 30 15:32:03 2002
State-Changed-Why:
    I don't think this is a bug. 11.0.7 states:
    7 The  names  in  a  default argument expression (_dcl.fct.default_) are
      bound at the point of declaration, and access is checked at that point
      rather than at any points of use of the default argument expression.
    
    I don't see anything right away in the standard that for
    checking access to the names used in the default value has
    to happen inside the scope of the function that uses them,
    but common reasoning would suggest that the enclosing scope
    is used, in which case the befriended function is not
    taken into account.
    
    I'll put this report into feedback mode. Please let us know
    if you can follow my reasoning, or whether we shall reopen
    the report.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7522


             reply	other threads:[~2002-10-30 23:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30 15:32 bangerth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-28 16:58 bangerth
2003-01-17  8:46 Christoph Ludwig
2002-10-31  9:24 bangerth
2002-10-31  8:46 Christoph Ludwig
2002-08-07  8:46 Christoph Ludwig

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=20021030233204.1003.qmail@sources.redhat.com \
    --to=bangerth@dealii.org \
    --cc=cludwig@cdc.informatik.tu-darmstadt.de \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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).