Skip to content

Assertion failed: (getContext().hasSameType(E->getType(), type)), function EmitCallArg #25571

@compnerd

Description

@compnerd
Bugzilla Link 25197
Version trunk
OS All
Attachments reduced.mm

Extended Description

When using generics, the type check for the argument can fail due to the expression type being specialized by the generics. The reduced test case attached triggers the assertion in an assertions build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]objective-c++worksformeResolved as "works for me"

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions