I wrote a little test program using numeric_limits, but forgot to include <limits>. It compiles anyway without complaints using GCC 4.1.1. I tried using the -ansi and -pedantic options with no effect. Why is the compiler allowing this, and are there tools available in Linux for testing the code more strictly?