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

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

https://gcc.gnu.org/g:370440f9f9860b59686138cf5213601cf6dda812

commit r9-10163-g370440f9f9860b59686138cf5213601cf6dda812
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Apr 12 17:43:51 2021 -0400

    c++: constexpr, inheritance, and local class [PR91933]

    Here we complained about referring to nm3 from the local class member
    function because referring to the base class subobject involved taking the
    variable's address.  Let's shortcut this case to avoid that.

    gcc/cp/ChangeLog:

            PR c++/91933
            * class.c (build_base_path): Shortcut simple non-pointer case.

    gcc/testsuite/ChangeLog:

            PR c++/91933
            * g++.dg/cpp0x/constexpr-base7.C: New test.
  • [Bug c++/91933] [9 Regression] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to