http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119
Richard Smith <richard-gccbugzilla at metafoo dot co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |richard-gccbugzilla at | |metafoo dot co.uk --- Comment #1 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> 2012-02-04 02:12:41 UTC --- In more detail: Under the C++11 FDIS, this is not a (core) constant expression due to the "— a result that is not mathematically defined or not in the range of representable values for its type;" bullet in [expr.const]p2. Under DR1313, that rule is generalized to all undefined behavior. And a constexpr function which can't produce a constant expression is ill-formed by [dcl.constexpr]p5.