https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52202
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>: https://gcc.gnu.org/g:a7698c0e1ecad65b1ab651acc82b34e12c7efd35 commit r11-8022-ga7698c0e1ecad65b1ab651acc82b34e12c7efd35 Author: Marek Polacek <pola...@redhat.com> Date: Tue Apr 6 22:17:33 2021 -0400 c++: Add test for Core issue 1376 [PR52202] As Jens says in the PR, we handle this correctly. gcc/testsuite/ChangeLog: PR c++/52202 * g++.dg/cpp0x/rv-life.C: New test.