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
2c9c6ada
Commit
2c9c6ada
authored
May 10, 2018
by
Jason Merrill
Committed by
Jason Merrill
May 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* parser.c (cp_parser_class_head): Use num_template_headers_for_class.
From-SVN: r260125
parent
5d7b4c6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
gcc/cp/ChangeLog
+2
-0
gcc/cp/parser.c
+1
-14
No files found.
gcc/cp/ChangeLog
View file @
2c9c6ada
2018-05-09 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_class_head): Use num_template_headers_for_class.
* pt.c (instantiate_decl): Make sure we aren't trying to do a nested
instantiation in template context.
...
...
gcc/cp/parser.c
View file @
2c9c6ada
...
...
@@ -22930,20 +22930,7 @@ cp_parser_class_head (cp_parser* parser,
/* Otherwise, count the number of templates used in TYPE and its
containing scopes. */
else
{
tree
scope
;
for
(
scope
=
TREE_TYPE
(
type
);
scope
&&
TREE_CODE
(
scope
)
!=
NAMESPACE_DECL
;
scope
=
get_containing_scope
(
scope
))
if
(
TYPE_P
(
scope
)
&&
CLASS_TYPE_P
(
scope
)
&&
CLASSTYPE_TEMPLATE_INFO
(
scope
)
&&
PRIMARY_TEMPLATE_P
(
CLASSTYPE_TI_TEMPLATE
(
scope
))
&&
(
!
CLASSTYPE_TEMPLATE_SPECIALIZATION
(
scope
)
||
uses_template_parms
(
CLASSTYPE_TI_ARGS
(
scope
))))
++
num_templates
;
}
num_templates
=
num_template_headers_for_class
(
TREE_TYPE
(
type
));
}
/* Otherwise, the identifier is optional. */
else
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