[Bug c++/93152] derived_from on lambda arg causes ICE / uses wrong base, for some orders of template args on containing function

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 2 13:10:59 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93152

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ppalka at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #7 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Thanks for the analysis and for the reduced testcase.

> This might have the same root cause as 93154, as in both cases, it looks like the compiler is mixing up the template arguments of the outer function and the inner lambda.

I think you're right.  PR92633 contains a smaller testcase whose root cause is
the same, and after fixing that PR (for GCC 10.2+) we now also correctly
compile the original testcase here.  So I'm marking this PR as a dup of
PR92633.

*** This bug has been marked as a duplicate of bug 92633 ***


More information about the Gcc-bugs mailing list