[Bug libstdc++/52119] numeric_limits::min() is not a constant expression

jyasskin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 5 02:05:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119

--- Comment #4 from Jeffrey Yasskin <jyasskin at gcc dot gnu.org> 2012-02-05 02:04:00 UTC ---
I hadn't tested

#define __glibcxx_min(T) \
  (__glibcxx_signed (T) ? -__glibcxx_max(T) - 1 : (T)0)

but now I have, and it works with clang.



More information about the Gcc-bugs mailing list