This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/4403: incorrect class becomes a friend in template
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/4403: incorrect class becomes a friend in template
- From: nathan at codesourcery dot com
- Date: 26 Sep 2001 16:00:32 -0000
- Reply-To: nathan at codesourcery dot com
>Number: 4403
>Category: c++
>Synopsis: incorrect class becomes a friend in template
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Sep 26 09:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: nathan@codesourcery.com
>Release: CVS, 3.0.1, cp-parser-branch
>Organization:
>Environment:
>Description:
during the cp-parser-branch development, I find that
g++.pt/inherit2.C makes the wrong class a friend.
We sued to give the correct diagnostic about
friend struct AC making ::AC a friend not A<T>::AC,
but infact we do make A<T>::AC the friend.
The test case did not check that friendliness was actually
bestowed. I have extended and XFAILED the testcase
on the cp-parser-branch.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: