Skip to content

clang marks as error redundant template keyword, when no arguments #135780

Closed
@kelbon

Description

@kelbon

clang 19 changes behavior for this code from "all good' to 'ill-formed', is this intentional?

template<typename X>
void foo() {
    X::template bar(5);
}

https://godbolt.org/z/sr9Yv3e36

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