Commit b270a521 by Jakub Jelinek

re PR c++/84813 (internal compiler error: Segmentation fault with lambdas and constexpr variables)

	PR c++/84813
	* g++.dg/debug/pr84813.C: New test.

From-SVN: r258445
parent b79fa2f6
2018-03-12 Jakub Jelinek <jakub@redhat.com>
PR c++/84813
* g++.dg/debug/pr84813.C: New test.
2018-03-11 Paul Thomas <pault@gcc.gnu.org>
PR fortran/84546
* gfortran.dg/unlimited_polymorphic_29.f90 : New test.
* gfortran.dg/unlimited_polymorphic_29.f90: New test.
2018-03-11 Steven G. Kargl <kargl@gcc.gnu.org>
......
// PR c++/84813
// { dg-do compile }
// { dg-options "-g -std=c++14" }
template <typename>
struct P {};
template <int>
struct F {
using type = int;
};
template <typename T>
void
apply ()
{
constexpr int N = T::N;
[] (typename F<N>::type)
{
auto f = [] () {};
P<decltype (f)>{};
};
}
struct A {
static constexpr int N = 1;
};
void
instantiate ()
{
apply<A> ();
}
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