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
7ac63bca
Commit
7ac63bca
authored
Oct 10, 1997
by
Jason Merrill
Committed by
Jason Merrill
Oct 10, 1997
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (instantiate_decl): Fix previous change.
From-SVN: r15888
parent
9cd60aa9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
gcc/cp/ChangeLog
+4
-0
gcc/cp/pt.c
+13
-5
No files found.
gcc/cp/ChangeLog
View file @
7ac63bca
Fri Oct 10 12:21:11 1997 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (instantiate_decl): Fix previous change.
Thu Oct 9 12:08:21 1997 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (tsubst): Fix thinko.
...
...
gcc/cp/pt.c
View file @
7ac63bca
...
...
@@ -623,8 +623,7 @@ check_explicit_specialization (declarator, decl, template_count, flags)
member class template of a non-specialized class
template is itself a template.
So, we just leave the template info alone in this case.
*/
So, we just leave the template info alone in this case. */
if
(
!
(
DECL_TEMPLATE_INFO
(
decl
)
&&
DECL_TI_TEMPLATE
(
decl
)))
DECL_TEMPLATE_INFO
(
decl
)
=
perm_tree_cons
(
tmpl
,
targs
,
NULL_TREE
);
...
...
@@ -4411,9 +4410,6 @@ instantiate_decl (d)
int
line
=
lineno
;
char
*
file
=
input_filename
;
if
(
DECL_TEMPLATE_SPECIALIZATION
(
d
))
return
d
;
for
(
td
=
tmpl
;
DECL_TEMPLATE_INSTANTIATION
(
td
);
)
td
=
DECL_TI_TEMPLATE
(
td
);
...
...
@@ -4437,6 +4433,18 @@ instantiate_decl (d)
if
(
d_defined
)
return
d
;
if
(
TREE_CODE
(
d
)
==
FUNCTION_DECL
)
{
tree
specs
;
/* Check to see if there is a matching specialization. */
for
(
specs
=
DECL_TEMPLATE_SPECIALIZATIONS
(
tmpl
);
specs
!=
NULL_TREE
;
specs
=
TREE_CHAIN
(
specs
))
if
(
comp_template_args
(
TREE_PURPOSE
(
specs
),
args
))
return
TREE_VALUE
(
specs
);
}
/* This needs to happen before any tsubsting. */
if
(
!
push_tinst_level
(
d
))
return
d
;
...
...
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