[clang] [clang][constexpr] Allow IndirectGotoStmt in constexpr functions for C++23 (PR #213449)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 4 08:33:57 PDT 2026
================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fcxx-exceptions -verify=beforecxx14,beforecxx20,beforecxx23 -std=c++11 %s
+// RUN: %clang_cc1 -fcxx-exceptions -verify=beforecxx20,beforecxx23 -std=c++14 %s
+// RUN: %clang_cc1 -fcxx-exceptions -verify=beforecxx23 -std=c++20 %s
+// RUN: %clang_cc1 -fcxx-exceptions -std=c++23 %s
+
+constexpr int GNUConstexprComputedGoto() {
+ return 0; // beforecxx14-note {{previous}}
+ // - an indirect goto statement
----------------
zwuis wrote:
This comment seems meaningless.
https://github.com/llvm/llvm-project/pull/213449
More information about the cfe-commits
mailing list