Skip to content

Clang accepts invalid code: int field<0, 1, int>; #54151

@jcelerier

Description

@jcelerier

Repro: https://gcc.godbolt.org/z/7rhq5Wvbe

struct foo {
  int field<0, 1, int, 3>;
};

the above compiles and runs starting from clang-9 up to current git HEAD.

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