From: Jakub Jelinek Date: Tue, 10 Oct 2017 20:09:01 +0000 (+0200) Subject: re PR middle-end/70100 (ICE: in execute, at cfgexpand.c:6066) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4407c3097f2de0e54bdcfa3057c1019726e5ac40;p=gcc.git re PR middle-end/70100 (ICE: in execute, at cfgexpand.c:6066) PR middle-end/70100 * g++.dg/opt/pr70100.C: New test. From-SVN: r253611 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index db8482ce807..3d7a5348493 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2017-10-10 Jakub Jelinek + PR middle-end/70100 + * g++.dg/opt/pr70100.C: New test. + PR c++/68252 * g++.dg/other/pr68252.C: New test. diff --git a/gcc/testsuite/g++.dg/opt/pr70100.C b/gcc/testsuite/g++.dg/opt/pr70100.C new file mode 100644 index 00000000000..3f612cba3fb --- /dev/null +++ b/gcc/testsuite/g++.dg/opt/pr70100.C @@ -0,0 +1,21 @@ +// PR middle-end/70100 +// { dg-do compile { target c++11 } } +// { dg-options "-O0" } + +void +bar (int) +{ +} + +template +void +foo (Args && ... args) +{ + [&] { [&] { bar(args...); }; }; +} + +int +main () +{ + foo (2); +}