Skip to content

Clang doesn't add thiscall calling convention to mangled template function names #118213

@TheComputerGuy96

Description

@TheComputerGuy96

Godbolt example: https://godbolt.org/z/WjG7sabd5

Real-world example: https://github.com/CookiePLMonster/SilentPatch/blob/50c3a47cd3c0c366c416dbec70151152e2ea80dd/SilentPatchSA/SilentPatchSA.cpp#L344

This (mis)behavior notably causes variable conflicts with two different variables (I can workaround this by using a more generic template and then doing a cast to the right type but that isn't the best solution)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions