Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
6d2b8c50
Commit
6d2b8c50
authored
Sep 24, 2001
by
Richard Sandiford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed, since DR209 patch was reverted on this branch.
From-SVN: r45771
parent
d8c2a810
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
71 deletions
+0
-71
gcc/testsuite/g++.old-deja/g++.other/friend12.C
+0
-71
No files found.
gcc/testsuite/g++.old-deja/g++.other/friend12.C
deleted
100644 → 0
View file @
d8c2a810
// Build don't link:
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 1 Mar 2001 <nathan@codesourcery.com>
// DR 209. friend access is not checked.
class
Z
;
class
A
{
class
Inner
{};
// ERROR - private
Inner
f
(
Inner
);
public
:
A
();
friend
class
Z
;
};
class
B
{
A
::
Inner
j
();
// ERROR - private
A
::
Inner
k
();
// ERROR - private
friend
A
::
Inner
A
::
f
(
Inner
);
int
t
;
friend
class
A
::
Inner
;
};
A
::
Inner
l
();
// ERROR - private
A
::
Inner
m
();
// ERROR - private
A
::
Inner
a
,
// ERROR - private
b
;
// ERROR - private
A
::
Inner
a1
;
// ERROR - private
int
b2
;
A
::
Inner
A
::
f
(
Inner
)
{
B
b
;
b
.
t
=
1
;
return
A
::
Inner
();
}
void
Foo
()
{
A
::
Inner
i
;
// ERROR - private
class
Local
{
friend
A
::
Inner
A
::
f
(
Inner
);
A
::
Inner
k
;
// ERROR - private
};
class
Local1
:
A
::
Inner
{
// ERROR - private
};
A
::
Inner
k
;
// ERROR - private
}
class
X
:
A
::
Inner
{
// ERROR - private
class
I
:
A
::
Inner
{
// ERROR - private
};
};
class
Z
:
A
::
Inner
{
// ERROR - private
class
I
:
A
::
Inner
{
// ok, the base A::Inner is in the scope of Z which is a friend of A
};
};
int
b4
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment