https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78345
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If the initializer is e.g. 3.0f instead of [] {}, then it is rejected because of the type mismatch, so I'd say the bug is in not actually rejecting the initialization of struct S by lambda, then we wouldn't ICE on the type mismatch. But no idea where to do that.