https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #8 from Behdad Esfahbod ---
(In reply to Andrew Pinski from comment #7)
>
> Can you report that as a bug as GCC's rule is treat all arrays that end a
> POD as a flexiable array? Please include the full preprocessed source that
> pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #7 from Andrew Pinski ---
(In reply to Behdad Esfahbod from comment #6)
> > But I will note GCC treats (all) arrays at the end of a POD struct as a
> > flexible one so the question I have is more about the ubsan issue you are
> > run
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #6 from Behdad Esfahbod ---
Thank you all. I understand it's unlikely to happen at this point.
In reply to Andrew Pinski from comment #1)
> I will let someone comment on the flexible array extension.
>
> But I will note GCC treats
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
Martin Sebor changed:
What|Removed |Added
Blocks||69698
--- Comment #5 from Martin Sebor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #4 from Andrew Pinski ---
(In reply to Martin Sebor from comment #3)
> The reason why G++ rejects structs with a flexible array as the sole member
> is because GCC (in C mode) doesn't accept them. Git log indicates that GCC
> starte
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
Martin Sebor changed:
What|Removed |Added
CC||msebor at gcc dot gnu.org
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100124
--- Comment #1 from Andrew Pinski ---
I will let someone comment on the flexible array extension.
But I will note GCC treats (all) arrays at the end of a POD struct as a
flexible one so the question I have is more about the ubsan issue you are