Skip to content

-fms-extensions does not include MSVC empty enum extension #114402

Open
@StreetwareGames

Description

@StreetwareGames

MSVC accepts, Clang rejects

https://godbolt.org/z/4nqYeqoor

Edit:
Just tried it on my windows machine and it seems to be supported there. compiler explorer runs on linux so I recall -fms-extensions doing next to nothing in that environment. feel free to close

Edit 2:
with -fms-extensions on windows, this is the behavior of Clang:

typedef enum a : uint16_t A; // accepted
typedef enum : uint16_t A; // rejected
typedef enum : uint16_t { } A; // rejected

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