================
@@ -0,0 +1,63 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
+// expected-no-diagnostics
+
+typedef unsigned long size_t;
+
+namespace android {
+namespace ftl {
+
+template <typename T>
+struct StaticString {
+  static constexpr size_t N = 1;
+  char view[2];
+  constexpr StaticString(T) : view{'a', '\0'} {}
+};
+
+template <size_t N, typename... Ts>
+struct Concat;
+
+template <size_t N, typename T, typename... Ts>
+struct Concat<N, T, Ts...> : Concat<N + StaticString<T>::N, Ts...> {
+  explicit constexpr Concat(T v, Ts... args) {
----------------
steakhal wrote:

I put this code to compiler explorer and it does not crash on clang 19, 20, 21, 
22, and trunk. with asserts.
https://godbolt.org/z/G96doW6jv
So where do we crash that we want to demonstrate that we fix?
What clang versions are affected?
What caused it?

https://github.com/llvm/llvm-project/pull/184767
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to