re PR c++/78648 (ICE on invalid C++ code on x86_64-linux-gnu (Segmentation fault, contains_struct_check))
2017-09-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/78648 * g++.dg/cpp0x/lambda/lambda-ice21.C: New. From-SVN: r252829
This commit is contained in:
parent
a3e61d61ba
commit
f5e37f2ae5
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-09-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/78648
|
||||
* g++.dg/cpp0x/lambda/lambda-ice21.C: New.
|
||||
|
||||
2017-09-15 Jackson Woodruff <jackson.woodruff@arm.com>
|
||||
|
||||
PR tree-optimization/71026
|
||||
|
|
10
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C
Normal file
10
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice21.C
Normal file
|
@ -0,0 +1,10 @@
|
|||
// PR c++/78648
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template <typename F> void e(F) {}
|
||||
|
||||
template <int> void bar() {
|
||||
e([](const void) {}); // { dg-error "invalid use" }
|
||||
}
|
||||
|
||||
void baz() { bar<1>; }
|
Loading…
Add table
Reference in a new issue