https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106974
Andrew Pinski changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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.
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