Skip to content

[Clang] Accepts invalid alias template with the same name as its template parameter #123423

@MagentaTreehouse

Description

@MagentaTreehouse
template <class T>
using T = int;

This is rejected by GCC, MSVC and EDG.

See https://compiler-explorer.com/z/6a5jWGn4s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partydiverges-from:edgDoes the clang frontend diverge from edg compiler on this issuediverges-from:gccDoes the clang frontend diverge from gcc on this issuediverges-from:msvcDoes the clang frontend diverge from msvc on this issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions