File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3262,7 +3262,7 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration(
32623262 } else if (ThisDecl)
32633263 Actions.AddInitializerToDecl (ThisDecl, Init.get (),
32643264 EqualLoc.isInvalid ());
3265- } else if (ThisDecl && DS. getStorageClassSpec () == DeclSpec::SCS_static )
3265+ } else if (ThisDecl && DeclaratorInfo. isStaticMember () )
32663266 // No initializer.
32673267 Actions.ActOnUninitializedDecl (ThisDecl);
32683268
Original file line number Diff line number Diff line change @@ -7654,7 +7654,7 @@ NamedDecl *Sema::ActOnVariableDeclarator(
76547654 "should have a 'template<>' for this decl");
76557655 }
76567656
7657- if (SC != SC_None && ((IsVariableTemplateSpecialization && !IsPartialSpecialization) || IsMemberSpecialization)) {
7657+ if (SCSpec != DeclSpec::SCS_unspecified && ((IsVariableTemplateSpecialization && !IsPartialSpecialization) || IsMemberSpecialization)) {
76587658 Diag(D.getDeclSpec().getStorageClassSpecLoc(),
76597659 diag::ext_explicit_specialization_storage_class)
76607660 << FixItHint::CreateRemoval(D.getDeclSpec().getStorageClassSpecLoc());
You can’t perform that action at this time.
0 commit comments