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
1377eb9a
Commit
1377eb9a
authored
Jan 28, 2014
by
Jason Merrill
Committed by
Jason Merrill
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (duplicate_decls): Tweak.
From-SVN: r207198
parent
2e5e7103
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gcc/cp/ChangeLog
+2
-0
gcc/cp/decl.c
+3
-3
No files found.
gcc/cp/ChangeLog
View file @
1377eb9a
2014-01-28 Jason Merrill <jason@redhat.com>
* decl.c (duplicate_decls): Tweak.
PR c++/53756
* mangle.c (write_unqualified_name): Handle operator auto.
...
...
gcc/cp/decl.c
View file @
1377eb9a
...
...
@@ -1923,13 +1923,13 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
if
(
TREE_CODE
(
newdecl
)
==
FUNCTION_DECL
)
maybe_instantiate_noexcept
(
olddecl
);
/* Merge the data types specified in the two decls. */
newtype
=
merge_types
(
TREE_TYPE
(
newdecl
),
TREE_TYPE
(
olddecl
));
/* For typedefs use the old type, as the new type's DECL_NAME points
at newdecl, which will be ggc_freed. */
if
(
TREE_CODE
(
newdecl
)
==
TYPE_DECL
)
newtype
=
oldtype
;
else
/* Merge the data types specified in the two decls. */
newtype
=
merge_types
(
TREE_TYPE
(
newdecl
),
TREE_TYPE
(
olddecl
));
if
(
VAR_P
(
newdecl
))
{
...
...
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