================
@@ -2231,6 +2231,12 @@ static bool CheckLValueConstantExpression(EvalInfo
&Info, SourceLocation Loc,
return false;
}
+ if (Info.getLangOpts().C23) {
----------------
AaronBallman wrote:
```suggestion
// C23 6.7.1p6: If an object or subobject declared with storage-class
specifier constexpr has pointer,
// integer, or arithmetic type, any explicit initializer value for it shall
be null, an integer constant
// expression, or an arithmetic constant expression, respectively.
if (Info.getLangOpts().C23) {
```
May need to adjust for 80-col limits.
https://github.com/llvm/llvm-project/pull/73099
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits