Commit aaf58ab1 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/70338 (ICE combining debug symbols, range-for in lambda in function…

re PR c++/70338 (ICE combining debug symbols, range-for in lambda in function template accessing captured variable-size array)

	PR c++/70338
	* g++.dg/cpp0x/pr70338.C: New test.

From-SVN: r253615
parent 10885d13
2017-10-10 Jakub Jelinek <jakub@redhat.com> 2017-10-10 Jakub Jelinek <jakub@redhat.com>
PR c++/70338
* g++.dg/cpp0x/pr70338.C: New test.
PR c++/77786 PR c++/77786
* g++.dg/cpp1y/pr77786.C: New test. * g++.dg/cpp1y/pr77786.C: New test.
......
// PR c++/70338
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
template<typename T>
void
foo (int x)
{
T a[x];
auto b = [&]() { for (auto &c: a) c = 0.; };
}
int
main ()
{
foo<double> (3);
}
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