https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95434
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> --- Looks like the testcases in comment #1 and comment #3 are PR98611 and are fixed for GCC 11 with r11-6614. We still ICE on your original testcase though. Reduced: template <class> void f() { []<template <class> class U>() { U{0}; }; } template void f<int>();