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?