[Bug c/79269] Calculate size of struct with flexible array at compile time

2017-01-29 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79269 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/79269] Calculate size of struct with flexible array at compile time

2017-01-29 Thread mojo at world3 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79269 --- Comment #2 from mojo at world3 dot net --- Thanks. __builtin_object_size() works well at runtime and solves me immediate need, which spurred me to suggest this enhancement. After giving it some thought I agree with you, I can't see any easy w