https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64714
Bug ID: 64714 Summary: [5.0 regression] __builtin_object_size (..., 1) fails to locate subobject Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sch...@linux-m68k.org Created attachment 34520 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34520&action=edit Testcase >From the glibc testsuite. $ gcc-4.9 -O2 fortify.i && ./a.out && echo $? *** buffer overflow detected ***: ./a.out terminated [...] $ gcc-5 -O2 fortify.i && ./a.out && echo $? 0