Skip to content

Clang shouldn't accept extraneous template headers as an extension #99296

@zyn0217

Description

@zyn0217

(This is uncovered while working on #75697)

6591149 results in an extension where Clang accepts templates with redundant template headers. However, this is clearly ill-formed and no other compilers would accept it. I think we should probably remove the extension in Sema::MatchTemplateParametersToScopeSpecifier() and reject such templates in the end.

https://compiler-explorer.com/z/TcPGjWMGM

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions