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
bdc3400f
Commit
bdc3400f
authored
Jul 01, 2006
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert accidental checkin
From-SVN: r115119
parent
cf5131b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
gcc/cp/search.c
+2
-3
No files found.
gcc/cp/search.c
View file @
bdc3400f
...
...
@@ -792,12 +792,11 @@ friend_accessible_p (tree scope, tree decl, tree binfo)
if
(
protected_accessible_p
(
decl
,
TREE_VALUE
(
t
),
binfo
))
return
1
;
/* Nested classes
have the same access as
their enclosing types, as
/* Nested classes
are implicitly friends of
their enclosing types, as
per core issue 45 (this is a change from the standard). */
if
(
TYPE_P
(
scope
))
for
(
t
=
TYPE_CONTEXT
(
scope
);
t
&&
TYPE_P
(
t
);
t
=
TYPE_CONTEXT
(
t
))
if
(
protected_accessible_p
(
decl
,
t
,
binfo
)
||
friend_accessible_p
(
t
,
decl
,
binfo
))
if
(
protected_accessible_p
(
decl
,
t
,
binfo
))
return
1
;
if
(
TREE_CODE
(
scope
)
==
FUNCTION_DECL
...
...
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