[Bug c++/85944] Address of temporary bound to a function parameter at global scope not considered constexpr

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 14 14:21:11 GMT 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
The problem seems to be that maybe_nonzero_address doesn't return true for all
temporaries, only those created at function scope, but here the temporary for
'S{}' is created at namespace scope.


More information about the Gcc-bugs mailing list