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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:4dc86f716fe6087f1cf786d69c0c6f3f5af810f0

commit r13-331-g4dc86f716fe6087f1cf786d69c0c6f3f5af810f0
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed May 11 09:44:57 2022 -0400

    c++: fix arm-eabi bootstrap [PR105567]

    Since my r13-112, in the template we were changing 'return' to 'return
this'
    on cdtor_returns_this targets, and then getting confused by that when
    instantiating.  So only make that change at instantiation time.

            PR bootstrap/105567

    gcc/cp/ChangeLog:

            * typeck.cc (check_return_expr): Don't mess with ctor return value
            while parsing a template.

    gcc/testsuite/ChangeLog:

            * g++.dg/template/ctor10.C: New test.

Reply via email to