Commit 55a46cb5 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/82882 (ICE Segmentation fault)

	PR c++/82882
	PR c++/83978
	* g++.dg/cpp0x/pr82882.C: New test.
	* g++.dg/cpp0x/pr83978.C: New test.

From-SVN: r256985
parent 941ae8b4
2018-01-23 Jakub Jelinek <jakub@redhat.com> 2018-01-23 Jakub Jelinek <jakub@redhat.com>
PR c++/82882
PR c++/83978
* g++.dg/cpp0x/pr82882.C: New test.
* g++.dg/cpp0x/pr83978.C: New test.
PR c++/83958 PR c++/83958
* g++.dg/cpp1z/decomp35.C: New test. * g++.dg/cpp1z/decomp35.C: New test.
......
// PR c++/82882
// { dg-do compile { target c++11 } }
template <typename>
void
foo ()
{
auto v = [] { enum { E, F }; };
}
void
bar ()
{
foo<int> ();
}
// PR c++/83978
// { dg-do compile { target c++11 } }
template <int N>
struct A { A () { auto a = [] { enum E { F }; }; } };
A<0> *p = new A<0> ();
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