On 24/05/12 15:27, Delcypher wrote: > $ g++ -m64 limits.cpp > > compilation succeeds. However if I compile as follows I get a rather > unhelpful error. > > $ g++ -m32 limits.cpp > In file included from limits.cpp:1:0: > /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1405:35: > error: template argument 1 is invalid > /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits:1479:44: > error: template argument 1 is invalid > > Seems a very strange error message to give as I took a look at the > numeric_limits templates in the <limits> header file and it looks > perfectly valid. > > Is this a bug or a "feature"? > > Regards, > Dan. Works for me with the same version.