rsmith added inline comments.

================
Comment at: lib/Sema/SemaTemplateDeduction.cpp:1424-1426
@@ -1423,2 +1423,5 @@
 
+      SmallVector<DeducedTemplateArgument, 8> DeducedOrig(Deduced.begin(),
+                                                          Deduced.end());
+
       // Try to deduce template arguments from the template-id.
----------------
Can you also make this saving (and restoring) of the old deduced arguments 
conditional on `TDF_DerivedClass` and the argument type being a class type? 
Maybe duplicate the `DeduceTemplateArguments` call and put one copy inside the 
`if (const RecordType *RecordT = ...` block and the other on the `else` path, 
instead of moving the copy earlier.


http://reviews.llvm.org/D18868



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to