[Bug c++/99595] New: ICE when pack expansion with template lambda

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 15 11:32:53 GMT 2021


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

            Bug ID: 99595
           Summary: ICE when pack expansion with template lambda
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

The following code will trigger ICE on gcc-trunk:

auto f(auto... args) {
  ([]<decltype(args) y>{ y; }, ...);
}

int main() { f(0); }

(godbolt: https://godbolt.org/z/11G8G5)
(wanbox: https://wandbox.org/permlink/Bbmq4ZWehhJqlBdk)


More information about the Gcc-bugs mailing list