[clang] [AArch64][SME] Add diagnostics to CheckConstexprFunctionDefinition (PR #121777)
Kerry McLaughlin via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 06:17:08 PST 2025
================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s
+// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -std=c++23 -fsyntax-only -verify %s
----------------
kmclaughlin-arm wrote:
I think adding attributes to lambdas before the parameter list was only allowed in C++23. If I don't pass this flag, the error emitted is instead `"'attribute' in this position is a C++23 extension"`.
https://github.com/llvm/llvm-project/pull/121777
More information about the cfe-commits
mailing list