Skip to content

[clang] Ungrammatical "a enum specifier" error message #94443

Closed
@Rajveer100

Description

@Rajveer100

Clang throws ungrammatical error message for alias.

GodBolt

Old:

error: type alias 'A' cannot be referenced with a enum specifier

New:

error: type alias 'A' cannot be referenced with the 'enum' specifier

This can be rephrased for other cases as well, ex:

template<class T> using A = int;
struct A s;

Metadata

Metadata

Assignees

Labels

clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzergood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions