]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/pt.c
PR c++/88869 - C++17 ICE with CTAD and explicit specialization.
[thirdparty/gcc.git] / gcc / cp / pt.c
index 76fb625a06847e5eee0ceeae69576d1f71f9f802..42dd095a6b010ba63bd2f14d1084568886465dfe 100644 (file)
@@ -27224,7 +27224,7 @@ do_class_deduction (tree ptype, tree tmpl, tree init, int flags,
 
   tree outer_args = NULL_TREE;
   if (DECL_CLASS_SCOPE_P (tmpl)
-      && CLASSTYPE_TEMPLATE_INFO (DECL_CONTEXT (tmpl)))
+      && CLASSTYPE_TEMPLATE_INSTANTIATION (DECL_CONTEXT (tmpl)))
     {
       outer_args = CLASSTYPE_TI_ARGS (DECL_CONTEXT (tmpl));
       type = TREE_TYPE (most_general_template (tmpl));