Skip to content

[Clang][Windows] Accepts invalid [] int x; #173156

@MagentaTreehouse

Description

@MagentaTreehouse
[] int x;

This code is invalid but accepted by Clang on Windows, reproducible with the main branch.
See https://compiler-explorer.com/z/s65rv9Pcf. (clang-cl 18.1 only)

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