[all-commits] [llvm/llvm-project] 978852: [clang] Don't evaluate the initializer of constexp...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Tue Jun 3 09:51:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 97885213bd4507b204b050c3cd570e365d21cc7d
https://github.com/llvm/llvm-project/commit/97885213bd4507b204b050c3cd570e365d21cc7d
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2025-06-03 (Tue, 03 Jun 2025)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/constant-expression-p2280r4.cpp
Log Message:
-----------
[clang] Don't evaluate the initializer of constexpr-unknown parameters. (#142498)
If we see a parameter of reference type that isn't part of the frame,
don't try to evaluate its default argument. Just treat it as a
constexpr-unknown value.
Fixes #141114. Fixes #141858.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list