This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/45906] Cross build gcc 4.5.1 failed but same options success on 4.4.1
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla-noreply at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 6 Oct 2010 01:09:15 +0000
- Subject: [Bug libstdc++/45906] Cross build gcc 4.5.1 failed but same options success on 4.4.1
- Auto-submitted: auto-generated
- References: <bug-45906-4@http.gcc.gnu.org/bugzilla/>
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".