https://wg21.link/p1937 proposes that in unevaluated contexts, consteval
functions should not be immediately evaluated.
Clang implemented p1937 a while ago, its behavior is correct and the
test needs an update.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thank you for the fix.
Besides the nitpick, LGTM
clang/test/CXX/expr/expr.const/p8-2a.cpp | ||
---|---|---|
14 | How about "Prior to P1937R2 consteval functions were evaluated even in otherwise unevaluated context, now this is well-formed" and move it right above the "using check" |
How about "Prior to P1937R2 consteval functions were evaluated even in otherwise unevaluated context, now this is well-formed"
and move it right above the "using check"