[Bug c++/80456] [8/9/10/11 Regression] calling constexpr member function from volatile-qualified member function: error: ‘this’ is not a constant expression

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 15 13:17:53 GMT 2021


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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.8.1
            Summary|calling constexpr member    |[8/9/10/11 Regression]
                   |function from               |calling constexpr member
                   |volatile-qualified member   |function from
                   |function: error: ‘this’ is  |volatile-qualified member
                   |not a constant expression   |function: error: ‘this’ is
                   |                            |not a constant expression
      Known to fail|                            |10.3.0, 11.0, 8.4.0, 9.3.0
                 CC|                            |ppalka at gcc dot gnu.org
   Target Milestone|---                         |8.5

--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
We apparently started rejecting the testcase starting with GCC 4.9 (r0-122547
or perhaps r0-122549); GCC 4.8 accepts.  So I suppose we should consider this
PR a regression.


More information about the Gcc-bugs mailing list