[llvm-branch-commits] [clang] [libcxx] [clang] Finish implementation of P0522 (PR #96023)
Nikolas Klauser via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jun 22 03:54:17 PDT 2024
================
@@ -18,5 +18,9 @@
#include <array>
#include <utility>
-// expected-error at +1 {{template template argument has different template parameters than its corresponding template template parameter}}
-static_assert(!std::__is_specialization_v<std::pair<int, std::size_t>, std::array>);
+#if defined(__clang__) && __clang_major__ >= 19
+// expected-error at array:* {{could not match _Size against 'type-parameter-0-0'}}
+#else
+// expected-error@#SA {{template template argument has different template parameters than its corresponding template template parameter}}
+#endif
----------------
philnik777 wrote:
I'd just add an `expected-error@*:*` instead.
https://github.com/llvm/llvm-project/pull/96023
More information about the llvm-branch-commits
mailing list