https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185
--- Comment #5 from Andrew Pinski ---
(In reply to zaz from comment #4)
> > > this:
> > > struct PascalString
> > > {
> > > int length;
> > > char data[0];
> > > };
> > > And then just allocate necessary memory block and able access to someth
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185
--- Comment #4 from zaz at ua7 dot net ---
> > this:
> > struct PascalString
> > {
> > int length;
> > char data[0];
> > };
> > And then just allocate necessary memory block and able access to something
> > like:
> > ps.data[100] - if allocate
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185
--- Comment #3 from Andrew Pinski ---
(In reply to zaz from comment #2)
> But this is deliberate out-of-bands. IE in this test application searchDict2
> lookup all KV fields in dict structure in loop based on kv1 offset:
> kv1 + 0 - this is point
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185
--- Comment #2 from zaz at ua7 dot net ---
But this is deliberate out-of-bands. IE in this test application searchDict2
lookup all KV fields in dict structure in loop based on kv1 offset:
kv1 + 0 - this is pointer to kv1
kv1 + 1 - this is pointer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64185
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|