diff --git a/dynare++/kord/approximation.cc b/dynare++/kord/approximation.cc
index 6934ec6d281676e17498fba86d772d5695fe668f..9c0efe7f2ac507b0fbb24189c63d71615d8ebdc5 100644
--- a/dynare++/kord/approximation.cc
+++ b/dynare++/kord/approximation.cc
@@ -1,6 +1,6 @@
 /*
  * Copyright © 2005 Ondra Kamenik
- * Copyright © 2019-2021 Dynare Team
+ * Copyright © 2019-2023 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -40,10 +40,12 @@ ZAuxContainer::itype
 ZAuxContainer::getType(int i, const Symmetry &s) const
 {
   if (i == 0)
-    if (s[2] > 0)
-      return itype::zero;
-    else
-      return itype::matrix;
+    {
+      if (s[2] > 0)
+        return itype::zero;
+      else
+        return itype::matrix;
+    }
   return itype::zero;
 }
 
diff --git a/dynare++/kord/korder_stoch.hh b/dynare++/kord/korder_stoch.hh
index d4152d4f436ff81cb0c32608225546dd25ae935e..857bcc65db27ff07ee1c465c1551e0af2820fefe 100644
--- a/dynare++/kord/korder_stoch.hh
+++ b/dynare++/kord/korder_stoch.hh
@@ -1,6 +1,6 @@
 /*
  * Copyright © 2005 Ondra Kamenik
- * Copyright © 2019-2022 Dynare Team
+ * Copyright © 2019-2023 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -285,19 +285,23 @@ typename GXContainer<_Ttype>::itype
 GXContainer<_Ttype>::getType(int i, const Symmetry &s) const
 {
   if (i == 0)
-    if (s[2] > 0)
-      return itype::zero;
-    else
-      return itype::matrix;
+    {
+      if (s[2] > 0)
+        return itype::zero;
+      else
+        return itype::matrix;
+    }
   if (i == 1)
     return itype::zero;
   if (i == 2)
     return itype::zero;
   if (i == 3)
-    if (s == Symmetry{0, 0, 0, 1})
-      return itype::unit;
-    else
-      return itype::zero;
+    {
+      if (s == Symmetry{0, 0, 0, 1})
+        return itype::unit;
+      else
+        return itype::zero;
+    }
 
   KORD_RAISE("Wrong stack index in GXContainer::getType");
 }
@@ -331,25 +335,33 @@ typename ZXContainer<_Ttype>::itype
 ZXContainer<_Ttype>::getType(int i, const Symmetry &s) const
 {
   if (i == 0)
-    if (s[2] > 0)
-      return itype::zero;
-    else
-      return itype::matrix;
+    {
+      if (s[2] > 0)
+        return itype::zero;
+      else
+        return itype::matrix;
+    }
   if (i == 1)
-    if (s[2] > 0)
-      return itype::zero;
-    else
-      return itype::matrix;
+    {
+      if (s[2] > 0)
+        return itype::zero;
+      else
+        return itype::matrix;
+    }
   if (i == 2)
-    if (s == Symmetry{1, 0, 0, 0})
-      return itype::unit;
-    else
-      return itype::zero;
+    {
+      if (s == Symmetry{1, 0, 0, 0})
+        return itype::unit;
+      else
+        return itype::zero;
+    }
   if (i == 3)
-    if (s == Symmetry{0, 1, 0, 0})
-      return itype::unit;
-    else
-      return itype::zero;
+    {
+      if (s == Symmetry{0, 1, 0, 0})
+        return itype::unit;
+      else
+        return itype::zero;
+    }
 
   KORD_RAISE("Wrong stack index in ZXContainer::getType");
 }
diff --git a/dynare++/tl/cc/stack_container.hh b/dynare++/tl/cc/stack_container.hh
index dd0c32752876e32f684b6c483995b740b1798c0a..e5903a5509b6ae54fe1a8112dbeb9057b76f7865 100644
--- a/dynare++/tl/cc/stack_container.hh
+++ b/dynare++/tl/cc/stack_container.hh
@@ -1,6 +1,6 @@
 /*
  * Copyright © 2004 Ondra Kamenik
- * Copyright © 2019 Dynare Team
+ * Copyright © 2019-2023 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -365,10 +365,12 @@ public:
   getType(int i, const Symmetry &s) const override
   {
     if (i==0)
-      if (s[2] > 0)
-        return itype::zero;
-      else
-        return itype::matrix;
+      {
+        if (s[2] > 0)
+          return itype::zero;
+        else
+          return itype::matrix;
+      }
 
     TL_RAISE("Wrong stack index in XContainer::getType");
   }
@@ -433,20 +435,26 @@ public:
     if (i == 0)
       return itype::matrix;
     if (i == 1)
-      if (s[2] > 0)
-        return itype::zero;
-      else
-        return itype::matrix;
+      {
+        if (s[2] > 0)
+          return itype::zero;
+        else
+          return itype::matrix;
+      }
     if (i == 2)
-      if (s == Symmetry{1, 0, 0, 0})
-        return itype::unit;
-      else
-        return itype::zero;
+      {
+        if (s == Symmetry{1, 0, 0, 0})
+          return itype::unit;
+        else
+          return itype::zero;
+      }
     if (i == 3)
-      if (s == Symmetry{0, 1, 0, 0})
-        return itype::unit;
-      else
-        return itype::zero;
+      {
+        if (s == Symmetry{0, 1, 0, 0})
+          return itype::unit;
+        else
+          return itype::zero;
+      }
 
     TL_RAISE("Wrong stack index in ZContainer::getType");
   }
@@ -512,22 +520,28 @@ public:
   getType(int i, const Symmetry &s) const override
   {
     if (i == 0)
-      if (s[2] > 0 || s == Symmetry{0, 0, 0, 1})
-        return itype::zero;
-      else
-        return itype::matrix;
+      {
+        if (s[2] > 0 || s == Symmetry{0, 0, 0, 1})
+          return itype::zero;
+        else
+          return itype::matrix;
+      }
     if (i == 1)
-      if (s == Symmetry{0, 0, 1, 0})
-        return itype::unit;
-      else
-        return itype::zero;
+      {
+        if (s == Symmetry{0, 0, 1, 0})
+          return itype::unit;
+        else
+          return itype::zero;
+      }
     if (i == 2)
       return itype::zero;
     if (i == 3)
-      if (s == Symmetry{0, 0, 0, 1})
-        return itype::unit;
-      else
-        return itype::zero;
+      {
+        if (s == Symmetry{0, 0, 0, 1})
+          return itype::unit;
+        else
+          return itype::zero;
+      }
 
     TL_RAISE("Wrong stack index in GContainer::getType");
   }
diff --git a/license.txt b/license.txt
index e471efd484e3b46f6b69dac9e046fc02ecc42d11..d7d66d75dba7d6c2d271ca4de279b0c96ef6db7f 100644
--- a/license.txt
+++ b/license.txt
@@ -280,7 +280,7 @@ License: GFDL-NIV-1.3+
 
 Files: dynare++/*
 Copyright: 2004-2011 Ondra Kamenik
-           2019-2022 Dynare Team
+           2019-2023 Dynare Team
 License: GPL-3+
 
 Files: m4/ax_compare_version.m4
diff --git a/mex/build/matlab/mex.am b/mex/build/matlab/mex.am
index 237762aec675d990aac679c148a3f4f96f28ebde..03bef38efa80b7ece8f749e44d825b74982f56fd 100644
--- a/mex/build/matlab/mex.am
+++ b/mex/build/matlab/mex.am
@@ -9,7 +9,7 @@ DEFS += -DMEXEXT=\"$(MEXEXT)\"
 
 AM_CFLAGS = $(MATLAB_CFLAGS) -Wall -Wno-parentheses # TODO: use same warnings as C++
 AM_FCFLAGS = $(MATLAB_FCFLAGS) -Wall -Wimplicit-interface
-AM_CXXFLAGS = -std=gnu++20 $(MATLAB_CXXFLAGS) -Wall -Wno-dangling-else -Wextra -Wold-style-cast
+AM_CXXFLAGS = -std=gnu++20 $(MATLAB_CXXFLAGS) -Wall -Wextra -Wold-style-cast
 AM_LDFLAGS = $(MATLAB_LDFLAGS)
 LIBS += $(MATLAB_LIBS)
 
diff --git a/mex/build/octave/mex.am b/mex/build/octave/mex.am
index 2f8d713ef3a13e20abc672209f27561a1259faed..0e77872e7836ba1a445afdd18c9d0f0d3daef90f 100644
--- a/mex/build/octave/mex.am
+++ b/mex/build/octave/mex.am
@@ -5,7 +5,7 @@ DEFS += -DMEXEXT=\".mex\"
 
 AM_CFLAGS = $(shell $(MKOCTFILE) -p CPICFLAG) -Wall -Wno-parentheses # TODO: use same warnings as C++
 AM_FCFLAGS = $(shell $(MKOCTFILE) -p FPICFLAG) -Wall -Wimplicit-interface
-AM_CXXFLAGS = -std=gnu++20 $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wno-dangling-else -Wextra -Wold-style-cast
+AM_CXXFLAGS = -std=gnu++20 $(shell $(MKOCTFILE) -p CXXPICFLAG) -Wall -Wextra -Wold-style-cast
 AM_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS)
 
 # See the comments in configure.ac
diff --git a/preprocessor b/preprocessor
index 6caf8c6c59b0bf25a8154711c6db7817470b4f6f..1b7b70ec934a66ac6f7844dce670f17ba0b561a0 160000
--- a/preprocessor
+++ b/preprocessor
@@ -1 +1 @@
-Subproject commit 6caf8c6c59b0bf25a8154711c6db7817470b4f6f
+Subproject commit 1b7b70ec934a66ac6f7844dce670f17ba0b561a0