https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99640
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with r8-2720-gf44a8dd56f5bfbd0596c39693e268ef880c06221 Doesn't ICE anymore on the trunk starting with r11-7418-g27f9a87886d48448f83e0e559dcf028b1a4a4ec6 but is rejected instead: pr99640.C: In lambda function: pr99640.C:19:44: error: statement cannot resolve address of overloaded function 19 | [](auto) { operator(); }; | ^~~~~~~~~~ pr99640.C: In instantiation of ‘void QVariantOutputArchive::operator()() [with <template-parameter-1-1> = {}]’: pr99640.C:39:6: required from ‘void qVariantArchiveTestVersioned() [with <template-parameter-1-1> = int; int <anonymous> = 1]’ pr99640.C:41:69: required from here pr99640.C:19:44: error: statement cannot resolve address of overloaded function Thus, I think it is a dup. *** This bug has been marked as a duplicate of bug 95451 ***