The stack trace:
clang++: /root/llvm-project/clang/lib/AST/ExprConstant.cpp:14817: bool clang::Expr::EvaluateAsConstantExpr(clang::Expr::EvalResult&, const clang::ASTContext&, clang::Expr::ConstantExprKind) const: Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Here is the code snippet which triggers the assertion at line 14816 of ExprConstant.cpp.
https://github.com/llvm/llvm-project/blob/3315bd0beb4cf23f838bd522a1f0e3fcc0a9fae2/clang/lib/AST/ExprConstant.cpp#L14816-L14817
Here is the godbolt link demonstrating the crash: https://godbolt.org/z/PrPqaP8M9
The stack trace: clang++: /root/llvm-project/clang/lib/AST/ExprConstant.cpp:14817: bool clang::Expr::EvaluateAsConstantExpr(clang::Expr::EvalResult&, const clang::ASTContext&, clang::Expr::ConstantExprKind) const: Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed. PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: