Skip to content

[Clang] Incorrect "Redeclaration of using-enum declaration" #147495

@kezyr

Description

@kezyr

This code compiles normaly on gcc, msvc but clangd says Redeclaration of using-enum declaration.

struct A {
  enum class B {BB};
  using enum B;
  struct C {
    using enum B;
  };
};

https://godbolt.org/z/9d48vcrnv

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyrejects-valid

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions