------- Comment #2 from paolo dot carlini at oracle dot com 2008-08-18 13:16 ------- Actually, correctly, in the compilation of comp2.cc, bits/postypes.h doesn't end up be included, at least on x86_64-linux. Please confirm that, is the most important thing now. The preprocessed comp2.cc is very small for me, easy to debug ;) Then I'm now suspecting that for some reason, when include/tr1_impl/cstdint defines __STDC_LIMIT_MACROS and then include_next stdint.h, on your target the macros (INTMAX_MAX, in particular) does not become available.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37147