https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107441
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |anlauf at gcc dot gnu.org Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2022-10-27 --- Comment #1 from anlauf at gcc dot gnu.org --- Confirmed. There is an inconsistency either in the generated code for the caller or the callee: integer(kind=4) testoptional (character(kind=1)[1:1] & restrict w, integer(kind=4) x, integer(kind=8) _w, logical(kind=1) _x) vs. t = testoptional (&s, 0, 0, 1); How does the ABI define the ordering of character length and presence flag?