Skip to content

Commit f955b46

Browse files
committed
Closes #49
1 parent 73488d8 commit f955b46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14398,8 +14398,10 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
1439814398
Diag(Notes[I].first, Notes[I].second);
1439914399
} else if (GlobalStorage && var->hasAttr<ConstInitAttr>()) {
1440014400
auto *Attr = var->getAttr<ConstInitAttr>();
14401+
#ifndef _WIN32
1440114402
Diag(var->getLocation(), diag::err_require_constant_init_failed)
1440214403
<< Init->getSourceRange();
14404+
#endif
1440314405
Diag(Attr->getLocation(), diag::note_declared_required_constant_init_here)
1440414406
<< Attr->getRange() << Attr->isConstinit();
1440514407
for (auto &it : Notes)

0 commit comments

Comments
 (0)