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

mojo at world3 dot net gcc-bugzilla@gcc.gnu.org
Sun Jan 29 23:11:00 GMT 2017


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 way to
handle incomplete objects.


More information about the Gcc-bugs mailing list