[Bug c++/80456] calling constexpr member function from volatile-qualified member function: error: ‘this’ is not a constant expression
lebed.dmitry at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 23 03:43:35 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80456
Dmitry Lebed <lebed.dmitry at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lebed.dmitry at gmail dot com
--- Comment #7 from Dmitry Lebed <lebed.dmitry at gmail dot com> ---
Just encountered the same issue independently
https://stackoverflow.com/questions/64019728/are-there-any-caveats-in-c-with-constexpr-static-function-usage-in-volatile
It's sad to see that it's already 3 years without fix.
It's still valid for GCC trunk (according to godbolt) and at 10.2 (according to
my local tests).
Any hope in fixing this?
More information about the Gcc-bugs
mailing list