On 06/25/2014 02:51 AM, Jan Hubicka wrote:
@@ -4388,7 +4388,8 @@ build_clone (tree fn, tree name)
    clone = copy_decl (fn);
    /* Reset the function name.  */
    DECL_NAME (clone) = name;
-  SET_DECL_ASSEMBLER_NAME (clone, NULL_TREE);
+  if (TREE_CODE (clone) != TEMPLATE_DECL)
+    SET_DECL_ASSEMBLER_NAME (clone, NULL_TREE);

Instead of this, move the SET_DECL_ASSEMBLER_NAME down below the template block.

OK with that change.

Jason

Reply via email to