Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Clang] Poor diagnostics for use of a template class without providing parameters in some contexts #55962

Closed
Labels
clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
@brycelelbach

Description

@brycelelbach

Godbolt

template<typename T>structx;template<typename T>constexprint y = x::a;// Clang diagnostic doesn't mention that `x` is a template.using z = x;// Clang diagnostic mentions that `x` is a template.

In the definition ofy, Clang complains thatx isn't a "class, namespace, or enumeration", but fails to mention that it is a class template and no template parameters have been provided.

In other simpler contexts, such as the definition of the using aliasy, Clang does explain thatx is a class template and template parameters need to be provided.

We should improve the quality of the diagnostic for they case - it should explain thatx is a class template and template parameters are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp