[Bug c++/71537] GCC rejects consetxpr boolean conversions and comparisons on the result of pointer arithmetic.
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 6 09:23:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71537
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Dec 6 09:22:36 2016
New Revision: 243284
URL: https://gcc.gnu.org/viewcvs?rev=243284&root=gcc&view=rev
Log:
PR c++/71537
* fold-const-call.c (fold_const_call): Handle
CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
* g++.dg/cpp0x/constexpr-strchr.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-strchr.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const-call.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list