[PATCH] D34370: Fix for Bug 33471: Preventing operator auto from resolving to a template operator.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 19 15:39:05 PDT 2017

rsmith added inline comments.

Comment at: lib/Sema/SemaLookup.cpp:870-872
+    auto *Ty =
+        dyn_cast<AutoType>(R.getLookupName().getCXXNameType());
+    if (Ty && Ty->isUndeducedType())
This is not sufficient to catch cases such as `operator auto*`, and one day there'll be concepts and potentially class template argument deduction here too. Use `Ty->getContainedDeducedType()` instead.


More information about the cfe-commits mailing list