diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-04 15:25:21 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-04 15:25:21 +0000 |
commit | 03719af81d81a96aeec4921e0989e589d42bae68 (patch) | |
tree | f874399fb49c2311cecbec842532e4d9dabb15da /gcc/cp/semantics.c | |
parent | 82a299afd7736cc1b5aaacebe4139cd1630abc60 (diff) |
* semantics.c (finish_template_type): Check CLASSTYPE_TEMPLATE_INFO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index c57264623d1..0a695008ada 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -3157,6 +3157,7 @@ finish_template_type (tree name, tree args, int entering_scope) if (flag_concepts && entering_scope && CLASS_TYPE_P (type) + && CLASSTYPE_TEMPLATE_INFO (type) && dependent_type_p (type) && PRIMARY_TEMPLATE_P (CLASSTYPE_TI_TEMPLATE (type))) type = fixup_template_type (type); |