llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) <details> <summary>Changes</summary> >From d8ca85a184c0fb511fe6483c4c24e48b5b1eb07a --- Full diff: https://github.com/llvm/llvm-project/pull/151822.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (-1) ``````````diff diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 20fdf2de59cb1..e2ac648320c0f 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -14724,7 +14724,6 @@ void Sema::CheckCompleteVariableDeclaration(VarDecl *var) { type->isIntegralOrEnumerationType()) { // In C++98, in-class initialization for a static data member must // be an integer constant expression. - // SourceLocation Loc; if (!Init->isIntegerConstantExpr(Context)) { Diag(Init->getExprLoc(), diag::ext_in_class_initializer_non_constant) `````````` </details> https://github.com/llvm/llvm-project/pull/151822 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits