[clang] [clang][Parser] Fix crash on invalid attribute in constexpr function (PR #144286)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 16 03:27:44 PDT 2025
================
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// issue144264
+constexpr void test()
+{
+ using TT = struct T[deprecated{};
----------------
a-tarasyuk wrote:
nit: The simplified example:
```cpp
namespace GH144264 {
constexpr void f() {
using A = struct B [;
}
}
```
This isn’t really about attributes — it's more about cases like:
```cpp
Copy
namespace GH144264 {
constexpr void f() {
using A = struct B[];
}
}
```
https://github.com/llvm/llvm-project/pull/144286
More information about the cfe-commits
mailing list