[PATCH] D132990: [Clang] Fix compat diagnostic to detect a nontype template parameter has a placeholder type using getContainedAutoType()

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 1 18:27:38 PDT 2022


shafik marked an inline comment as done.
shafik added inline comments.


================
Comment at: clang/test/SemaTemplate/temp_arg_nontype_diagnostic_cxx1z.cpp:7
+
+template <TemplateClass nttp> // ok, no diagnostic expected
+void func() {}
----------------
mizvekov wrote:
> I think this should have a new diagnostic per above, as this is not compatible with C++17.
I split out the tests to C++20 and C++17 parts.


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

https://reviews.llvm.org/D132990



More information about the cfe-commits mailing list