https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78840
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[5/6/7/8 Regression] ICE |[5 Regression] ICE with |with const variables in |const variables in |templates implicitly |templates implicitly |captured by nested lambda |captured by nested lambda |expressions |expressions --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- This seems to work with current 6/7/8 branches.