This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/67277] New: segfault when passing a missing optional argument to an elemental intrinsic


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]