[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-11 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Blocks|

[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 --- Comment #4 from Jonathan Wakely --- https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html "A structure containing a flexible array member, or a union containing such a structure (possibly recursively), may not be a member of a structure or an

[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-11 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 Richard Biener changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #

[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-10 Thread amir.ahmed.ansari at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 --- Comment #2 from Amir Ansari --- (In reply to Andrew Pinski from comment #1) > >Can we make this check more robust so valid usage isn't rejected? > > Why do you think it is valid? Because I know the flexible array member data isn't dangling

[Bug c++/94132] Valid usage of flexible array member failing to compile

2020-03-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94132 --- Comment #1 from Andrew Pinski --- >Can we make this check more robust so valid usage isn't rejected? Why do you think it is valid?