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
ba4f4e5d
Commit
ba4f4e5d
authored
26 years ago
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (push_template_decl_real):Remove unused var.
(is_member_template_class): #if 0. From-SVN: r23432
parent
faff4ab8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gcc/cp/pt.c
+3
-2
No files found.
gcc/cp/pt.c
View file @
ba4f4e5d
...
...
@@ -469,6 +469,7 @@ is_member_template (t)
return
0
;
}
#if 0 /* UNUSED */
/* Returns non-zero iff T is a member template class. See
is_member_template for a description of what precisely constitutes
a member template. */
...
...
@@ -493,6 +494,7 @@ is_member_template_class (t)
return (TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (t)) >
template_class_depth (DECL_CONTEXT (t)));
}
#endif
/* Return a new template argument vector which contains all of ARGS,
but has as its innermost set of arguments the EXTRA_ARGS. The
...
...
@@ -2167,7 +2169,7 @@ push_template_decl_real (decl, is_friend)
else
{
tree
a
,
t
,
current
,
parms
;
int
mem
,
i
;
int
i
;
if
(
CLASSTYPE_TEMPLATE_INSTANTIATION
(
ctx
))
cp_error
(
"must specialize `%#T' before defining member `%#D'"
,
...
...
@@ -2222,7 +2224,6 @@ push_template_decl_real (decl, is_friend)
/* Make sure the template headers we got make sense. */
mem
=
(
is_member_template
(
tmpl
)
||
is_member_template_class
(
tmpl
));
parms
=
DECL_TEMPLATE_PARMS
(
tmpl
);
i
=
TMPL_PARMS_DEPTH
(
parms
);
if
(
TMPL_ARGS_DEPTH
(
args
)
!=
i
)
...
...
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