https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78245
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2016-11-07 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- This is due to a limitation of the compute_builtin_object_size function in tree-object-size.c. The function only computes the sizes of dynamically allocated objects that have been explicitly passed to the __builtin_object_size intrinsic. Let me look into removing the limitation and having the function handle dynamically allocated objects even if they're not passed to the built-in.