[llvm-branch-commits] [clang] [libcxx] [PATCH 3/7] [clang] improve NestedNameSpecifier: test changes (PR #148014)

Louis Dionne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 1 10:06:22 PDT 2025


================
@@ -45,7 +45,7 @@ using E = test<NotALiteral, 1, std::array<NotALiteral, 1>{}>;
 // expected-error-re@*:* {{non-type template parameter has non-literal type 'std::array<NotALiteral, 1U{{L{0,2}.*}}>'}}
 
 using F = test<std::string, 2, std::array<std::string, 2>{}>;
-// expected-error-re@*:* {{type 'std::array<{{(std::)?}}string, 2U{{L{0,2}.*}}>' {{(\(aka 'array<basic_string<char>, 2UL{0,2}>'\) )?}}of non-type template parameter is not a structural type}}
+// expected-error-re@*:* {{type 'std::array<{{(std::)?}}string, 2U{{L{0,2}.*}}>' {{(\(aka '(std::)?array<basic_string<char>, 2UL{0,2}>'\) )?}}of non-type template parameter is not a structural type}}
----------------
ldionne wrote:

```suggestion
// expected-error-re@*:* {{type {{.+}} of non-type template parameter is not a structural type}}
```

https://github.com/llvm/llvm-project/pull/148014


More information about the llvm-branch-commits mailing list