[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2018-04-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 Martin Sebor changed: What|Removed |Added Status|SUSPENDED |RESOLVED Resolution|---

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 Martin Sebor changed: What|Removed |Added Status|REOPENED|SUSPENDED --- Comment #9 from Martin Sebo

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #8 from Martin Sebor --- See the discussion of the __builtin_offsetof (FA5_7, a5_7 [5][0]) case below: https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01993.html

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-07 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #7 from Segher Boessenkool --- Discussed, where? I didn't see it. Got a link?

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #6 from Martin Sebor --- We discussed this case and agreed it's invalid because it attempts to compute the offset of an element of an array past the end. The equivalent but correct expression is: assert(offsetof(s, fpr[32]) == offse

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-07 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 Segher Boessenkool changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-11-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #3 from Martin Sebor --- Author: msebor Date: Tue Nov 3 18:53:19 2015 New Revision: 229717 URL: https://gcc.gnu.org/viewcvs?rev=229717&root=gcc&view=rev Log: PR c++-common/67882 * c-family/c-common.h (fold_offsetof_1): Add

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-10-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #2 from Martin Sebor --- Patch posted for review: https://gcc.gnu.org/ml/gcc-patches/2015-10/msg00915.html

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-10-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c/67882] surprising offsetof result on an invalid array member without diagnostic

2015-10-07 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67882 --- Comment #1 from Martin Sebor --- Created attachment 36459 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36459&action=edit /home/remote/msebor/patches/gcc-67882-surprising_offsetof_result.patch Proposed patch.