// dmc.cpp // dmc 8.34 with STLPort from DigitalMars website // // Useage : dmc dmc.cpp // // the scppn.exe crash dumps (not even an internal error reported) #include #include const long maxlong = std::numeric_limits::max(); int main (int, char*[]) { printf("%d\n", maxlong); } /* Rewriting the constant declaration in two steps as in : const std::numeric_limits a; const long maxlong = a.max(); doesn't crash anymore and gives the correct result. */