https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104964
--- Comment #11 from Siddhesh Poyarekar <siddhesh at gcc dot gnu.org> --- (In reply to Siddhesh Poyarekar from comment #10) > OK, I have a representative reproducer, which TBH is not too different from > the one you posted, just that it succeeds with __builtin_object_size and > fails with __builtin_dynamic_object_size: *crashes* with __builtin_dynamic_object_size and doesn't with __builtin_object_size. Sorry, I realized I used "fails" and "succeeds" in two opposite and confusing contexts there ;)