[Bug fortran/106065] Crash when reading extended derived type array in namelist

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 24 02:03:20 GMT 2022


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

Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-06-24
                 CC|                            |jvdelisle at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Well, its not really a 'crash', but certainly not correct.

Comment out the READ statements and look at the result:

$ ./a.out 
&NAM_BAL_NE
 DATE_TIME_NE(1)%NYEAR=0          ,
 DATE_TIME_NE(1)%NMONTH=0          ,
 DATE_TIME_NE(1)%NDAY=0          ,
 DATE_TIME_NE(1)%XTIME=  0.00000000    ,
 DATE_TIME_NE(2)%NYEAR=0          ,
 DATE_TIME_NE(2)%NMONTH=0          ,
 DATE_TIME_NE(2)%NDAY=0          ,
 DATE_TIME_NE(2)%XTIME=  0.00000000    ,
 /
&NAM_BAL_E
 DATE_TIME_E%TDATE%NYEAR=0          ,
 DATE_TIME_E%TDATE%NMONTH=0          ,
 DATE_TIME_E%TDATE%NDAY=0          ,
 DATE_TIME_E%YTIME=  0.00000000    ,
 /

The extended type is not even being seen as an array


More information about the Gcc-bugs mailing list