[Bug fortran/57596] Wrong code for allocatable deferred-length strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57596 Tobias Burnus changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Tobias Burnus --- FIXED on the trunk (4.9). Thanks for the report!
[Bug fortran/57596] Wrong code for allocatable deferred-length strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57596 --- Comment #5 from Tobias Burnus --- Author: burnus Date: Fri Jun 14 07:41:42 2013 New Revision: 200084 URL: http://gcc.gnu.org/viewcvs?rev=200084&root=gcc&view=rev Log: 2013-06-14 Tobias Burnus PR fortran/57596 * trans-decl.c (gfc_trans_deferred_vars): Honor OPTIONAL for nullify and deferred-strings' length variable. 2013-06-14 Tobias Burnus PR fortran/57596 * gfortran.dg/deferred_type_param_9.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/deferred_type_param_9.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/57596] Wrong code for allocatable deferred-length strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57596 --- Comment #4 from Tobias Burnus --- Patch: http://gcc.gnu.org/ml/fortran/2013-06/msg00082.html
[Bug fortran/57596] Wrong code for allocatable deferred-length strings
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57596 Tobias Burnus changed: What|Removed |Added Keywords||wrong-code Status|RESOLVED|REOPENED Last reconfirmed||2013-06-13 Blocks||45170 Resolution|INVALID |--- Summary|select type bug with|Wrong code for allocatable |optional variables? |deferred-length strings Ever confirmed|0 |1 --- Comment #3 from Tobias Burnus --- REOPEN PROGRAM main IMPLICIT NONE call get () contains SUBROUTINE get (c_val) CHARACTER( : ), INTENT( OUT ), ALLOCATABLE, OPTIONAL :: c_val CHARACTER( 10 ) :: c_val_tmp if(present(c_val)) c_val = c_val_tmp END SUBROUTINE get END PROGRAM main