https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
Bug ID: 67277 Summary: segfault when passing a missing optional argument to an elemental intrinsic Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: mikael at gcc dot gnu.org Target Milestone: --- Created attachment 36214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36214&action=edit test case The testcase is the intrinsic variant of generic_31.f90 from pr66929. It leads to a null pointer dereference at runtime when trying to evaluate the absent optional argument. The problem is the same as pr66929, we don't have a procedure interface symbol for the call, so we don't know that the dummy argument of the intrinsic procedure is optional, and thus assume that it is always present.