This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67564] Segfault on sourced allocattion statement with class(*) arrays
- From: "pault at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 31 Jan 2016 11:00:33 +0000
- Subject: [Bug fortran/67564] Segfault on sourced allocattion statement with class(*) arrays
- Auto-submitted: auto-generated
- References: <bug-67564-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67564
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Created attachment 37531
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37531&action=edit
Fix for 5-branch
5-branch requires a slightly different fix. For some reason, the argument to
copy is not being given the unlimited polymorphic attribute. Even the symbol
doesn't have it. Logically, the only way that a character can be copied to a
class object is that it is unlimited polymorphic and so the requirement is
ignored in this case.
My inclination is to commit this patch to 5-branch since it regtests OK and is
minimalist.
Cheers
Paul