[clang] Fixed grammatical error in "enum specifier" error msg #94443 (PR #94592)
Krystian Stasiowski via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 6 04:57:27 PDT 2024
================
@@ -6088,9 +6088,9 @@ def err_redefinition_different_concept : Error<
"redefinition of concept %0 with different template parameters or requirements">;
def err_tag_reference_non_tag : Error<
"%select{non-struct type|non-class type|non-union type|non-enum "
- "type|typedef|type alias|template|type alias template|template "
- "template argument}1 %0 cannot be referenced with a "
- "%select{struct|interface|union|class|enum}2 specifier">;
+ "type|typedef|type alias|template|alias template|template "
----------------
sdkrystian wrote:
I think this is using the standard term "alias template" as defined in [[temp.alias] p1](http://eel.is/c++draft/temp.alias#1). As for "type alias", the standard doesn't refer to _alias-declarations_ by any other name. I suppose the pedantically correct phrasing would be to refer to `typedef`s and _alias-declarations_ as _typedef-names_.
https://github.com/llvm/llvm-project/pull/94592
More information about the cfe-commits
mailing list