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 libfortran/80850] Sourced allocate() fails to allocate a pointer


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

--- Comment #28 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Paul Thomas from comment #27)
> Author: pault
> Date: Wed Nov  1 11:29:07 2017
> New Revision: 254299
> 
> URL: https://gcc.gnu.org/viewcvs?rev=254299&root=gcc&view=rev
> Log:
> 2017-11-01  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/80850
> 	* trans_expr.c (gfc_conv_procedure_call): When passing a class
> 	argument to an unlimited polymorphic dummy, it is wrong to cast
> 	the passed expression as unlimited, unless it is unlimited. The
> 	correct way is to assign to each of the fields and set the _len
> 	field to zero.
> 
> 2017-11-01  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/80850
> 	* gfortran.dg/class_64_f90 : New test.
> 
> Added:
>     branches/gcc-7-branch/gcc/testsuite/gfortran.dg/submodule_29.f08
> Modified:
>     branches/gcc-7-branch/gcc/fortran/ChangeLog
>     branches/gcc-7-branch/gcc/fortran/decl.c
>     branches/gcc-7-branch/gcc/testsuite/ChangeLog

Blast, this is the fix for PR80554.! I used the wrong file for the -F option on
the commit.

Ignore the noise!

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