This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67277] 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:34:35 +0000
- Subject: [Bug fortran/67277] segfault when passing a missing optional argument to an elemental intrinsic
- Auto-submitted: auto-generated
- References: <bug-67277-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 36215
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36215&action=edit
Draft patch, untested, currently bootstrapping
This patch adds a gfc_abstract_symbol class to abstract away the differences
between gfc_symbol and gfc_intrinsic_symbol.
Then the procedure symbol can be abstracted to a gfc_abstract_symbol, even if
it is intrinsic.
The change in symbol.c is necessary, otherwise the vptr is not set. I hope it
works that way.