Closed
Bug
Copy link
Description
With this test case I get:
$ clang++ -nogpuinc -nogpulib -c -x hip f.txt
clang-21: lib/AST/ExprConstant.cpp:17150: APSInt clang::Expr::EvaluateKnownConstInt(const ASTContext &, SmallVectorImpl<PartialDiagnosticAt> *) const: Assertion `!isValueDependent() && "Expression evaluator can't be called on a dependent expression."' failed.
Metadata
Metadata
Labels
Language frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"Verified by a second partyVerified by a second partyPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]