[Bug c++/71448] pointer relational comparison fails inside constant expression

2018-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |6.2

[Bug c++/71448] pointer relational comparison fails inside constant expression

2018-11-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/71448] pointer relational comparison fails inside constant expression

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-14 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Tue Jun 14 14:43:42 2016 New Revision: 237447 URL: https://gcc.gnu.org/viewcvs?rev=237447=gcc=rev Log: Backported from mainline 2016-06-08 Jakub Jelinek

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Martin Sebor changed: What|Removed |Added CC||erich.keane at intel dot com --- Comment

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #7 from Martin Sebor --- (In reply to Jakub Jelinek from comment #5) > That said, I wonder if it is ok that we don't reject clear out of bound > POINTER_PLUS_EXPR in constexprs, like: > static constexpr const char foo[] = "foo"; >

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Wed Jun 8 12:57:26 2016 New Revision: 237212 URL: https://gcc.gnu.org/viewcvs?rev=237212=gcc=rev Log: PR c++/71448 * fold-const.c (fold_comparison): Handle

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #4 from Jakub Jelinek --- I wrote so far --- fold-const.c.jj12016-06-06 19:39:40.0 +0200 +++ fold-const.c2016-06-08 09:56:56.830326277 +0200 @@ -8527,9 +8527,9 @@ fold_comparison (location_t loc, enum tr

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #3 from Richard Biener --- The C++ FE would need to substitute &"bar" for bar to make the simplification valid unless we start relying on undefinedness of pointer wrapping (which we don't seem to). Eventually fold_comparison simply

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/71448] pointer relational comparison fails inside constant expression

2016-06-07 Thread gcc at adamsimpkins dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71448 --- Comment #1 from Adam Simpkins --- Created attachment 38657 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38657=edit gcc 5.3 configuration options used during repro