re PR c++/71537 (GCC rejects consetxpr boolean conversions and comparisons on the...
authorJakub Jelinek <jakub@redhat.com>
Tue, 6 Dec 2016 09:22:36 +0000 (10:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 6 Dec 2016 09:22:36 +0000 (10:22 +0100)
commitbf2d0849a360376182b796042fedaa018b87d605
tree1e28303bb9807909476388958acd7617a39ca592
parent0d3ce69b79ab7d7ea4a2fc4ed5e983ea6efcfa69
re PR c++/71537 (GCC rejects consetxpr boolean conversions and comparisons on the result of pointer arithmetic.)

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.

From-SVN: r243284
gcc/ChangeLog
gcc/fold-const-call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-strchr.C [new file with mode: 0644]