public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7809: g++ 3.2 accepts friend declarations concerning inaccessible methods
@ 2002-09-02 6:46 bagnara
0 siblings, 0 replies; only message in thread
From: bagnara @ 2002-09-02 6:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 7809
>Category: c++
>Synopsis: g++ 3.2 accepts friend declarations concerning inaccessible methods
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Mon Sep 02 06:46:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: bagnara@cs.unipr.it
>Release: unknown-1.0
>Organization:
>Environment:
$ uname -a
Linux zoltan.unisuv.it 2.4.19 #23 Sun Aug 4 18:03:23 CEST 2002 i686 unknown
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/usr/local
Thread model: posix
gcc version 3.2
>Description:
The following snippet (call it bug.cc) compiles
whereas, according to the standard (11p3 and 11.4p7),
it should not:
class A {
private:
void f();
public:
A();
};
class B {
friend void A::f();
};
>How-To-Repeat:
$ g++ -c -W -Wall bug.cc
$
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-02 13:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02 6:46 c++/7809: g++ 3.2 accepts friend declarations concerning inaccessible methods bagnara
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).