http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50087
eric-bugs at omnifarious dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eric-bugs at omnifarious | |dot org --- Comment #5 from eric-bugs at omnifarious dot org 2011-09-02 20:57:45 UTC --- I thought that perhaps it was expected behavior. I still think it's a missed optimization opportunity. A call of a constexpr function can clearly, in all cases, be reduced to a constant expression if the arguments are also constant expressions. So it seems like the optimizer should do this if it can. But it isn't a 'bug' exactly, just more of a 'it could do this better'.