https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53792
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org Known to work| |6.0 --- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> --- This now works as expected (i.e., the calls to constexpr functions are folded regardless of whether or not they are invoked in a constexpr context) provided inlining is enabled. Without inlining the calls are not folded outside of constexpr (this was changed in r233671). I've added tests for this bug and will close it as fixed/resolved.