This is the mail archive of the gcc-patches@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]

(patch, fortran] PR83021 - [7/8 Regression] gfortran segfault in polymorphic assignment


Dear All,

This regression was caused by the patch for PR81447. The chunk that
has been modified came about because use association of derived types
in block data, in the presence of a vtable, was trying to add vtable
procedures, which is not allowed. The original patch did not
explicitly target block data and this is fixed here. I decided that a
testcase was not necessary but this could be done if desired.

Bootstrapped and regtested on FC23/x86_64 - OK for both branches?

I will commit tomorrow morning if there are no complaints.

Best regards

Paul

2017-11-26  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/83021
    * resolve.c (resolve_component): Only escape for use assciated
    vtypes if the current namespace has no proc_name and is most
    particularly block data.

Attachment: submit.diff
Description: Text document


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