PR c++/78689 - ICE on constructor with label
authorJason Merrill <jason@redhat.com>
Fri, 3 Feb 2017 22:42:37 +0000 (17:42 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 3 Feb 2017 22:42:37 +0000 (17:42 -0500)
commit77095a6ab13996a38b0a360d8ef9fc6cc6bc5234
tree3d5b23c76bf199ee7e8f14bc642997ba0d96ab88
parentac6dbb1a4042eaa719afbb9c7a02e4f409b8aa75
PR c++/78689 - ICE on constructor with label

gcc/
* tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
avoid copying non-taken branch.
gcc/cp/
* optimize.c (maybe_clone_body): Replace omitted parameters with
null lvalues.
* class.c (build_clone): Fix logic for omitting inherited parms.

From-SVN: r245172
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/optimize.c
gcc/testsuite/g++.dg/cpp1z/inh-ctor23.C
gcc/testsuite/g++.dg/init/ctor12.C [new file with mode: 0644]
gcc/tree-inline.c