http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50060
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-12 21:17:05 UTC --- (In reply to comment #3) > (It seems more a problem with my C++ test snippets in Comments #1 / #2: I > suppose any definition of such functions isn't viable for constexpr, because > the body has to assign the pointed integer additionally to returning a > value... > If Jason could confirm it would be great) Correct, the assignment makes it non-constant.