[clang] [clang] Fix potential constant expression checking with constexpr-unknown. (PR #149227)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 08:39:21 PDT 2025
================
@@ -24,3 +24,8 @@ constexpr void other_func() {
throw 12;
}
+
+// Make sure these don't trigger the diagnostic.
+extern const bool& b;
+constexpr bool fun1() { return b; }
+constexpr bool fun2(const bool& b) { return b; }
----------------
cor3ntin wrote:
Can you reference the issue (either a comment or in the namespace name)?
https://github.com/llvm/llvm-project/pull/149227
More information about the cfe-commits
mailing list