https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67564

--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Created attachment 37531 [details]
> 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 retests OK
> and is minimalist.

The patch applied to the most recent 5-branch fixes the PR (as well as the
reduced test at
https://groups.google.com/forum/#!topic/comp.lang.fortran/xhWRi7hOD3M) without
regression.

Reply via email to