Skip to content

Clang accepts invalid identifiers in [[gnu::abi_tag]] #83462

@philnik777

Description

@philnik777

Currently clang accepts code like [[gnu::abi_tag("123")]] void func() {}. The problem is that this will produce a mangled function name that cannot be demangled. In this case _Z4funcB3123v. GCC correctly rejects this: https://godbolt.org/z/vGjKMrEv4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions