This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67277] New: segfault when passing a missing optional argument to an elemental intrinsic
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Aug 2015 15:07:44 +0000
- Subject: [Bug fortran/67277] New: segfault when passing a missing optional argument to an elemental intrinsic
- Auto-submitted: auto-generated
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.