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
cc656415
Commit
cc656415
authored
Nov 01, 2016
by
Jason Merrill
Committed by
Jason Merrill
Nov 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* class.c (declared_access): Split out from handle_using_decl.
From-SVN: r241739
parent
3ec82f68
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
gcc/cp/ChangeLog
+4
-0
gcc/cp/class.c
+11
-4
gcc/cp/cp-tree.h
+1
-0
No files found.
gcc/cp/ChangeLog
View file @
cc656415
2016-11-01 Jason Merrill <jason@redhat.com>
* class.c (declared_access): Split out from handle_using_decl.
2016-10-31 Jakub Jelinek <jakub@redhat.com>
PR c++/78089
...
...
gcc/cp/class.c
View file @
cc656415
...
...
@@ -1299,6 +1299,16 @@ alter_access (tree t, tree fdecl, tree access)
return
0
;
}
/* Return the access node for DECL's access in its enclosing class. */
tree
declared_access
(
tree
decl
)
{
return
(
TREE_PRIVATE
(
decl
)
?
access_private_node
:
TREE_PROTECTED
(
decl
)
?
access_protected_node
:
access_public_node
);
}
/* Process the USING_DECL, which is a member of T. */
static
void
...
...
@@ -1306,10 +1316,7 @@ handle_using_decl (tree using_decl, tree t)
{
tree
decl
=
USING_DECL_DECLS
(
using_decl
);
tree
name
=
DECL_NAME
(
using_decl
);
tree
access
=
TREE_PRIVATE
(
using_decl
)
?
access_private_node
:
TREE_PROTECTED
(
using_decl
)
?
access_protected_node
:
access_public_node
;
tree
access
=
declared_access
(
using_decl
);
tree
flist
=
NULL_TREE
;
tree
old_value
;
...
...
gcc/cp/cp-tree.h
View file @
cc656415
...
...
@@ -5635,6 +5635,7 @@ extern tree get_vtable_decl (tree, int);
extern
void
resort_type_method_vec
(
void
*
,
void
*
,
gt_pointer_operator
,
void
*
);
extern
bool
add_method
(
tree
,
tree
,
tree
);
extern
tree
declared_access
(
tree
);
extern
tree
currently_open_class
(
tree
);
extern
tree
currently_open_derived_class
(
tree
);
extern
tree
outermost_open_class
(
void
);
...
...
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