[Bug c++/106974] g++ bug caused by r9-595-g955da5e5443724cb

2022-09-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/106974] g++ bug caused by r9-595-g955da5e5443724cb

2022-09-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974 --- Comment #4 from Martin Liška --- Code: #include #include template struct __attribute__ ((__packed__)) Shard { NumType data[128]; }; template class TestVector { public: TestVector() { shard_index_.push_back(Shard()); } c

[Bug c++/106974] g++ bug caused by r9-595-g955da5e5443724cb

2022-09-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974 --- Comment #3 from Andrew Pinski --- I think gcc is correct here. You cannot take the address of an element of a packed structure.

[Bug c++/106974] g++ bug caused by r9-595-g955da5e5443724cb

2022-09-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|g++ bug caused by