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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:e6b115be1c392de415925282a38f28cd78cb6c35

commit r14-10359-ge6b115be1c392de415925282a38f28cd78cb6c35
Author: Patrick Palka <ppa...@redhat.com>
Date:   Tue Jun 25 20:07:15 2024 -0400

    c++: decltype of capture proxy of ref [PR115504]

    The finish_decltype_type capture proxy handling added in r14-5330 was
    incorrectly stripping references in the type of the captured variable.

            PR c++/115504

    gcc/cp/ChangeLog:

            * semantics.cc (finish_decltype_type): Don't strip the reference
            type (if any) of a capture proxy's captured variable.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/decltype-auto8.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit 737449e5f233feb682b5dd2cc153892ad90a79bd)
  • [Bug c++/115504] [14/15 Regress... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to