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] segfault when passing a missing optional argument to an elemental intrinsic


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.


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