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
5b33cc83
Commit
5b33cc83
authored
8 years ago
by
Nathan Sidwell
Committed by
Nathan Sidwell
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* name-lookup.c (push_overloaded_decl_1): Refactor OVERLOAD creation.
From-SVN: r244334
parent
eae63d78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/name-lookup.c
+4
-2
No files found.
gcc/cp/ChangeLog
View file @
5b33cc83
2017-01-11 Nathan Sidwell <nathan@acm.org>
* name-lookup.c (push_overloaded_decl_1): Refactor OVERLOAD creation.
2017-01-11 Jakub Jelinek <jakub@redhat.com>
PR c++/78341
...
...
This diff is collapsed.
Click to expand it.
gcc/cp/name-lookup.c
View file @
5b33cc83
...
...
@@ -2454,9 +2454,11 @@ push_overloaded_decl_1 (tree decl, int flags, bool is_friend)
||
(
flags
&
PUSH_USING
))
{
if
(
old
&&
TREE_CODE
(
old
)
!=
OVERLOAD
)
new_binding
=
ovl_cons
(
decl
,
ovl_cons
(
old
,
NULL_TREE
));
/* Wrap the existing single decl in an overload. */
new_binding
=
ovl_cons
(
old
,
NULL_TREE
);
else
new_binding
=
ovl_cons
(
decl
,
old
);
new_binding
=
old
;
new_binding
=
ovl_cons
(
decl
,
new_binding
);
if
(
flags
&
PUSH_USING
)
OVL_USED
(
new_binding
)
=
1
;
}
...
...
This diff is collapsed.
Click to expand it.
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