This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71537] GCC rejects consetxpr boolean conversions and comparisons on the result of pointer arithmetic.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2016 18:44:32 +0000
- Subject: [Bug c++/71537] GCC rejects consetxpr boolean conversions and comparisons on the result of pointer arithmetic.
- Auto-submitted: auto-generated
- References: <bug-71537-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71537
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think we need __builtin_memchr et al to be usable in constant expressions,
because replacing them with hand-written loops would be a step backwards. For
uses outside constant expressions we want to go to libc and benefit from the
optimization work put into the libc routines.