Skip to content

[Clang] Allow auto() as an extension in all language modes #115609

Open
@philnik777

Description

@philnik777

Currently clang allows auto() casting only in C++23 and later. I don't think there is any reason to not support this as an extension all the way back to C++03, especially given that GCC does so already. This would allow us to replace _LIBCPP_AUTO_CAST with the appropriate language facility in a lot of places.

CC @AaronBallman

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"enhancementImproving things as opposed to bug fixing, e.g. new or missing featureextension:gnu

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions