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
40a380e4
Commit
40a380e4
authored
Jun 21, 2018
by
Jason Merrill
Committed by
Jason Merrill
Jun 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst) [TEMPLATE_TYPE_PARM]: Use TEMPLATE_PARM_DESCENDANTS.
From-SVN: r261861
parent
50200c65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gcc/cp/ChangeLog
+2
-0
gcc/cp/pt.c
+9
-0
No files found.
gcc/cp/ChangeLog
View file @
40a380e4
2018-06-21 Jason Merrill <jason@redhat.com>
* pt.c (tsubst) [TEMPLATE_TYPE_PARM]: Use TEMPLATE_PARM_DESCENDANTS.
* name-lookup.c (do_push_to_top_level): Don't allocate
current_lang_base.
(do_pop_from_top_level): Release current_lang_base.
...
...
gcc/cp/pt.c
View file @
40a380e4
...
...
@@ -14472,6 +14472,15 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl)
&&
!
PLACEHOLDER_TYPE_CONSTRAINTS
(
r
))
/* Break infinite recursion when substituting the constraints
of a constrained placeholder. */
;
else
if
(
TREE_CODE
(
t
)
==
TEMPLATE_TYPE_PARM
&&
!
PLACEHOLDER_TYPE_CONSTRAINTS
(
t
)
&&
!
CLASS_PLACEHOLDER_TEMPLATE
(
t
)
&&
(
arg
=
TEMPLATE_TYPE_PARM_INDEX
(
t
),
r
=
TEMPLATE_PARM_DESCENDANTS
(
arg
))
&&
(
TEMPLATE_PARM_LEVEL
(
r
)
==
TEMPLATE_PARM_LEVEL
(
arg
)
-
levels
))
/* Cache the simple case of lowering a type parameter. */
r
=
TREE_TYPE
(
r
);
else
{
r
=
copy_type
(
t
);
...
...
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