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

            Bug ID: 92909
           Summary: ICE on incorrect lambda inside variadic template
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: soko.slav at yandex dot ru
  Target Milestone: ---

Code:

template <class ... Ts>
void foo()
{
    []
    {
        using T = Ts;
    }();
}
template void foo<>();


fails to compile with message

<source>: In lambda function:
<source>:10:22: internal compiler error: in is_base_type, at dwarf2out.c:12893
 template void foo<>();

starting from gcc-8.1 (x86-64) till now including trunk, modules and contracts
branches
does not ICE on gcc-7.5 and earlier

does not ICE without lambda

Tested locally and on https://godbolt.org/z/gWfqhB

Reply via email to