From: Paolo Carlini Date: Fri, 15 Sep 2017 16:31:15 +0000 (+0000) Subject: re PR c++/78648 (ICE on invalid C++ code on x86_64-linux-gnu (Segmentation fault... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5e37f2ae57a87f8e661967f431e4bed37aceb2d;p=gcc.git re PR c++/78648 (ICE on invalid C++ code on x86_64-linux-gnu (Segmentation fault, contains_struct_check)) 2017-09-13 Paolo Carlini PR c++/78648 * g++.dg/cpp0x/lambda/lambda-ice21.C: New. From-SVN: r252829 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 240544f036a..bdc79b61e04 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-09-13 Paolo Carlini + + PR c++/78648 + * g++.dg/cpp0x/lambda/lambda-ice21.C: New. + 2017-09-15 Jackson Woodruff PR tree-optimization/71026 diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C new file mode 100644 index 00000000000..34354bd0915 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C @@ -0,0 +1,10 @@ +// PR c++/78648 +// { dg-do compile { target c++11 } } + +template void e(F) {} + +template void bar() { + e([](const void) {}); // { dg-error "invalid use" } +} + +void baz() { bar<1>; }