diff --git a/cfg/boost.cfg b/cfg/boost.cfg
index e9ea1be9203..0702bad74d7 100644
--- a/cfg/boost.cfg
+++ b/cfg/boost.cfg
@@ -16,6 +16,7 @@
+
@@ -92,6 +93,9 @@
+
+
+
diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index e561a6709c8..6d187a423e5 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -276,6 +276,7 @@
+
diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp
index 3db8e0b316f..b632085eef3 100644
--- a/lib/tokenlist.cpp
+++ b/lib/tokenlist.cpp
@@ -1517,6 +1517,7 @@ static Token * createAstAtToken(Token *tok, bool cpp)
}
if (!tok2 || tok2->str() != ";") {
if (tok2 == endPar && init1) {
+ createAstAtTokenInner(init1->next(), endPar, cpp);
tok->next()->astOperand2(init1);
tok->next()->astOperand1(tok);
}
diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp
index 57843ca1959..20dfb5aea6f 100644
--- a/test/testtokenize.cpp
+++ b/test/testtokenize.cpp
@@ -5959,6 +5959,7 @@ class TestTokenizer : public TestFixture {
ASSERT_EQUALS("forae*bc.({:(", testAst("for (a *e : {b->c()});"));
ASSERT_EQUALS("fori0=iasize.(b; }));")); // #10802
// for with initializer (c++20)
ASSERT_EQUALS("forab=ca:;(", testAst("for(a=b;int c:a)"));