This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52119] numeric_limits::min() is not a constant expression
- From: "jyasskin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 05 Feb 2012 02:04:00 +0000
- Subject: [Bug libstdc++/52119] numeric_limits::min() is not a constant expression
- Auto-submitted: auto-generated
- References: <bug-52119-4@http.gcc.gnu.org/bugzilla/>
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.