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

Matheus Izvekov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 02:58:49 PDT 2022


mizvekov added inline comments.


================
Comment at: clang/test/SemaTemplate/temp_arg_nontype_diagnostic_cxx1z.cpp:1
+// RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -Wpre-c++17-compat %s
+
----------------
One thing we could do is to run this test also in std=c++17 mode, with a different expectancy, as a kind of sanity check that the warning is in sync.


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

https://reviews.llvm.org/D132990



More information about the cfe-commits mailing list