================
@@ -3150,8 +3150,8 @@ Parser::DeclGroupPtrTy 
Parser::ParseCXXClassMemberDeclaration(
   if (Tok.is(tok::kw_concept)) {
     Diag(Tok.getLocation(),
          DS.isFriendSpecified() || NextToken().is(tok::kw_friend)
-             ? diag::err_friend_concept
-             : diag::
+             ? (unsigned)diag::err_friend_concept
+             : (unsigned)diag::
                    
err_concept_decls_may_only_appear_in_global_namespace_scope);
----------------
Sirraide wrote:

```suggestion
             ? unsigned(diag::err_friend_concept)
             : unsigned(diag::
                   
err_concept_decls_may_only_appear_in_global_namespace_scope));
```
We generally try to avoid C-style casts. You might have to reformat that 
because idk what clang-format is gonna do w/ this.

https://github.com/llvm/llvm-project/pull/112816
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to