https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66387

            Bug ID: 66387
           Summary: [5/6 Regression] ICE in make_decl_rtl with lambda
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---

template <typename T>
void
bar (T x)
{
  x ();
}

void
foo ()
{
  constexpr int a[1] = { 1 };
  bar ([&]{ return a[0]; });
}

ICEs with -std=c++11 and -std=c++14 starting with r217814.

Reply via email to