File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3148,11 +3148,13 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration(
3148
3148
// we did nothing here, but this allows us to issue a more
3149
3149
// helpful diagnostic.
3150
3150
if (Tok.is (tok::kw_concept)) {
3151
- Diag (Tok.getLocation (),
3152
- DS.isFriendSpecified () || NextToken ().is (tok::kw_friend)
3153
- ? diag::err_friend_concept
3154
- : diag::
3155
- err_concept_decls_may_only_appear_in_global_namespace_scope);
3151
+ Diag (
3152
+ Tok.getLocation (),
3153
+ DS.isFriendSpecified () || NextToken ().is (tok::kw_friend)
3154
+ ? llvm::to_underlying (diag::err_friend_concept)
3155
+ : llvm::to_underlying (
3156
+ diag::
3157
+ err_concept_decls_may_only_appear_in_global_namespace_scope));
3156
3158
SkipUntil (tok::semi, tok::r_brace, StopBeforeMatch);
3157
3159
return nullptr ;
3158
3160
}
You can’t perform that action at this time.
0 commit comments