We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73488d8 commit f955b46Copy full SHA for f955b46
clang/lib/Sema/SemaDecl.cpp
@@ -14398,8 +14398,10 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
14398
Diag(Notes[I].first, Notes[I].second);
14399
} else if (GlobalStorage && var->hasAttr<ConstInitAttr>()) {
14400
auto *Attr = var->getAttr<ConstInitAttr>();
14401
+#ifndef _WIN32
14402
Diag(var->getLocation(), diag::err_require_constant_init_failed)
14403
<< Init->getSourceRange();
14404
+#endif
14405
Diag(Attr->getLocation(), diag::note_declared_required_constant_init_here)
14406
<< Attr->getRange() << Attr->isConstinit();
14407
for (auto &it : Notes)
0 commit comments