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

            Bug ID: 94521
           Summary: Infinite loop with decltype of function parameter of
                    type decltype([]{})
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat testcase.C
template <typename>
void spam(decltype([]{}) *s)
{
  static_assert(__is_same(int, decltype(s)));
}

void foo()
{
  spam<int>(nullptr);
}

$ g++ -std=c++2a testcase.C
^C

Reply via email to