]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: catch parm initialization tweak
authorJason Merrill <jason@redhat.com>
Fri, 7 Oct 2022 01:10:52 +0000 (21:10 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 7 Oct 2022 13:52:52 +0000 (09:52 -0400)
commitf8ba88b6a811ca9bb4b8411d3f65c329fb480ee1
tree9175f73298390c300e31c5ce6e2b1336142ccceb
parent1a308905c1baf64d0ea4d09d7d92b55e79a2a339
c++: catch parm initialization tweak

We want to push the INIT_EXPR inside the CLEANUP_POINT_EXPR for the same
reason we want to push it into the MUST_NOT_THROW_EXPR: any cleanups follow
the initialization.

gcc/cp/ChangeLog:

* init.cc (expand_default_init): Also push the INIT_EXPR inside a
CLEANUP_POINT_EXPR.
gcc/cp/init.cc