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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Ah, the issue is that we don't want TARGET_EXPR in templates, but we also don't
want 'a' to stick around in the lambda, so we replace it with its constant
value...which we represent as a TARGET_EXPR.

Perhaps the simplest solution is to allow TREE_CONSTANT TARGET_EXPR.

Reply via email to