https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77284

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I wonder if we should simply

--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -5675,6 +5675,9 @@ potential_constant_expression_1 (tree t, bool want_rval,
bool strict,
    return false;
       }

+    case CLEANUP_STMT:
+      return RECUR (CLEANUP_BODY (t), want_rval);
+
     default:
       if (objc_is_property_ref (t))
    return false;


which would also fix Bug 77545.

Reply via email to