[PATCH] D150212: [clang][Sema] Improve diagnostics for auto return type

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 12:10:35 PDT 2023


rsmith accepted this revision.
rsmith added a comment.

LGTM too.



================
Comment at: clang/test/SemaCXX/auto-type-from-cxx.cpp:31-43
+class Abstract{
+  public:
+    void fun();
+    virtual void vfun()=0;
+    void call(){getCaller<Abstract>()(*this);} // expected-note {{in instantiation of function template specialization 'TestDeductionFail::getCaller<TestDeductionFail::Abstract>' requested here}}
+};
+
----------------
The end of this test seems unnecessary. Is there something else you want this test to cover, or can it be simplified?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150212/new/

https://reviews.llvm.org/D150212



More information about the cfe-commits mailing list