https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103496
--- Comment #5 from anlauf at gcc dot gnu.org --- Created attachment 57937 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57937&action=edit c_sizeof_8.f90 Here's a testcase derived from comment#0. Feel free to adapt it to your meet your needs, and push it.