Skip to content

[HIP][AMDGPU] Assertion failure when AMD attribute value depends on template argument #139570

@jayfoad

Description

@jayfoad

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

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions