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
362badb0
Commit
362badb0
authored
Mar 20, 1998
by
Kriang Lerdsuwanakij
Committed by
Jason Merrill
Mar 20, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (tsubst, TEMPLATE_TEMPLATE_PARM): Simplify.
From-SVN: r18735
parent
99024956
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+8
-13
No files found.
gcc/cp/ChangeLog
View file @
362badb0
Fri Mar 20 18:07:39 1998 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
* pt.c (tsubst, TEMPLATE_TEMPLATE_PARM): Simplify.
Fri Mar 20 10:42:07 1998 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (make_implicit_typename): Rewrite removed code.
...
...
gcc/cp/pt.c
View file @
362badb0
...
...
@@ -3689,20 +3689,7 @@ tsubst (t, args, in_decl)
{
case
TEMPLATE_TYPE_PARM
:
case
TEMPLATE_TEMPLATE_PARM
:
if
(
TREE_CODE
(
t
)
==
TEMPLATE_TEMPLATE_PARM
&&
CLASSTYPE_TEMPLATE_INFO
(
t
))
{
tree
argvec
=
tsubst
(
CLASSTYPE_TI_ARGS
(
t
),
args
,
in_decl
);
r
=
lookup_template_class
(
TYPE_NAME
(
t
),
argvec
,
in_decl
,
DECL_CONTEXT
(
TYPE_NAME
(
t
)));
r
=
cp_build_type_variant
(
r
,
TYPE_READONLY
(
t
),
TYPE_VOLATILE
(
t
));
}
else
r
=
copy_node
(
t
);
TEMPLATE_TYPE_PARM_INDEX
(
r
)
=
reduce_template_parm_level
(
TEMPLATE_TYPE_PARM_INDEX
(
t
),
r
,
levels
);
...
...
@@ -3710,6 +3697,14 @@ tsubst (t, args, in_decl)
TYPE_MAIN_VARIANT
(
r
)
=
r
;
TYPE_POINTER_TO
(
r
)
=
NULL_TREE
;
TYPE_REFERENCE_TO
(
r
)
=
NULL_TREE
;
if
(
TREE_CODE
(
t
)
==
TEMPLATE_TEMPLATE_PARM
&&
CLASSTYPE_TEMPLATE_INFO
(
t
))
{
tree
argvec
=
tsubst
(
CLASSTYPE_TI_ARGS
(
t
),
args
,
in_decl
);
CLASSTYPE_TEMPLATE_INFO
(
r
)
=
perm_tree_cons
(
TYPE_NAME
(
t
),
argvec
,
NULL_TREE
);
}
break
;
case
TEMPLATE_PARM_INDEX
:
...
...
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