[Bug c++/99640] Internal compiler error: in lookup_template_class_1, at cp/pt.c:9895
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 18 10:50:56 GMT 2021
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 ***
More information about the Gcc-bugs
mailing list