File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2464,9 +2464,13 @@ void Parser::ParseOptionalCXX11VirtSpecifierSeq(VirtSpecifiers &VS,
2464
2464
Diag (Tok.getLocation (), diag::err_override_control_interface)
2465
2465
<< VirtSpecifiers::getSpecifierName (Specifier);
2466
2466
} else if (Specifier == VirtSpecifiers::VS_Sealed) {
2467
+ #ifndef _WIN32
2467
2468
Diag (Tok.getLocation (), diag::ext_ms_sealed_keyword);
2469
+ #endif
2468
2470
} else if (Specifier == VirtSpecifiers::VS_Abstract) {
2471
+ #ifndef _WIN32
2469
2472
Diag (Tok.getLocation (), diag::ext_ms_abstract_keyword);
2473
+ #endif
2470
2474
} else if (Specifier == VirtSpecifiers::VS_GNU_Final) {
2471
2475
Diag (Tok.getLocation (), diag::ext_warn_gnu_final);
2472
2476
} else {
@@ -3544,10 +3548,12 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
3544
3548
? diag::warn_cxx98_compat_override_control_keyword
3545
3549
: diag::ext_override_control_keyword)
3546
3550
<< VirtSpecifiers::getSpecifierName (Specifier);
3551
+ #ifndef _WIN32
3547
3552
else if (Specifier == VirtSpecifiers::VS_Sealed)
3548
3553
Diag (FinalLoc, diag::ext_ms_sealed_keyword);
3549
3554
else if (Specifier == VirtSpecifiers::VS_Abstract)
3550
3555
Diag (AbstractLoc, diag::ext_ms_abstract_keyword);
3556
+ #endif
3551
3557
else if (Specifier == VirtSpecifiers::VS_GNU_Final)
3552
3558
Diag (FinalLoc, diag::ext_warn_gnu_final);
3553
3559
}
You can’t perform that action at this time.
0 commit comments