Commit f5e37f2a by Paolo Carlini Committed by Paolo Carlini

re PR c++/78648 (ICE on invalid C++ code on x86_64-linux-gnu (Segmentation…

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
parent a3e61d61
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
......
// 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>; }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment