It's caused by a compiler bug. I reduced it to a small test case
(see http://issues.apache.org/jira/browse/STDCXX-936) and sent it
to Sun. It has been assigned a review ID of 1249871.
The fix is to use the quoted form of the #include directive in
limits.cpp, like so:
Index: src/limits.cpp
==
Hello,
A customer discovered a problem with std::numeric_limits<> in stdcxx.
Passing std::numeric_limits<> as an lvalue as in the example below
results in undefined symbols for the symbol std::numeric_limits<> at
link time:
#include
#include
#include
int main()
{
int i = std::numeric_li