]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/call.c
re PR c++/22464 (ICE on classes in template functions which attempt closure)
[thirdparty/gcc.git] / gcc / cp / call.c
index cdf70a4d9b8af7899458467b7e0de6ce9a2a1553..924760534eddf7eaac4b883ca304921f13e92b81 100644 (file)
@@ -5348,6 +5348,7 @@ build_new_method_call (tree instance, tree fns, tree args,
       tree type = build_pointer_type (basetype);
       if (!same_type_p (type, TREE_TYPE (instance_ptr)))
        instance_ptr = build_nop (type, instance_ptr);
+      name = complete_dtor_identifier;
     }
 
   class_type = (conversion_path ? BINFO_TYPE (conversion_path) : NULL_TREE);