[Bug c++/80456] calling constexpr member function from volatile-qualified member function: error: ‘this’ is not a constant expression
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 20 10:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80456
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
How is the C++ abstract machine defined in this case? I don't think you can
constexpr evaluate any volatile load -- but of course in this case 'this'
shouldn't be considered volatile in that sense?
More information about the Gcc-bugs
mailing list