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
ef768ba3
Commit
ef768ba3
authored
Nov 18, 2014
by
Jason Merrill
Committed by
Jason Merrill
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pt.c (instantiate_template_1): Use tsubst_aggr_type for context.
From-SVN: r217716
parent
59f1d0db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
gcc/cp/ChangeLog
+2
-0
gcc/cp/pt.c
+2
-2
No files found.
gcc/cp/ChangeLog
View file @
ef768ba3
2014-11-18 Jason Merrill <jason@redhat.com>
2014-11-18 Jason Merrill <jason@redhat.com>
* pt.c (instantiate_template_1): Use tsubst_aggr_type for context.
PR c++/58102
PR c++/58102
* typeck2.c (store_init_value): Set it.
* typeck2.c (store_init_value): Set it.
* cp-tree.h (CONSTRUCTOR_MUTABLE_POISON): New.
* cp-tree.h (CONSTRUCTOR_MUTABLE_POISON): New.
...
...
gcc/cp/pt.c
View file @
ef768ba3
...
@@ -15856,8 +15856,8 @@ instantiate_template_1 (tree tmpl, tree orig_args, tsubst_flags_t complain)
...
@@ -15856,8 +15856,8 @@ instantiate_template_1 (tree tmpl, tree orig_args, tsubst_flags_t complain)
++
processing_template_decl
;
++
processing_template_decl
;
if
(
DECL_CLASS_SCOPE_P
(
gen_tmpl
))
if
(
DECL_CLASS_SCOPE_P
(
gen_tmpl
))
{
{
tree
ctx
=
tsubst
(
DECL_CONTEXT
(
gen_tmpl
),
targ_ptr
,
tree
ctx
=
tsubst
_aggr_type
(
DECL_CONTEXT
(
gen_tmpl
),
targ_ptr
,
complain
,
gen_tmpl
);
complain
,
gen_tmpl
,
true
);
push_nested_class
(
ctx
);
push_nested_class
(
ctx
);
}
}
/* Substitute template parameters to obtain the specialization. */
/* Substitute template parameters to obtain the specialization. */
...
...
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