http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45906
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paolo.carlini at oracle dot | |com --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-06 01:09:08 UTC --- (In reply to comment #0) > /home/samson/src/gccB451/arm-none-linux-gnueabi/libstdc++-v3/include/type_traits:179: > error: a function call cannot appear in a constant-expression > /home/samson/src/gccB451/arm-none-linux-gnueabi/libstdc++-v3/include/type_traits:179: > error: template argument 2 is invalid I know very little about cross-compilation, but something seems badly wrong with the setup you are using: the 4.5.1 C++ front-end definitely implements the __is_trivial "builtin".