Skip to content

Commit f1ec0ff

Browse files
committed
Fix derived type initialization
During derived type data initialization, skip the type descriptor, i.e. $td.
1 parent 452545c commit f1ec0ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/flang1/flang1exe/semutil2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,6 +2668,9 @@ _constructf90(int base_id, int in_indexast, bool in_array, ACL *aclp)
26682668
for (; mem_sptr != NOSYM; mem_sptr = SYMLKG(mem_sptr)) {
26692669
if (!is_unl_poly(mem_sptr) && no_data_components(DTYPEG(mem_sptr)))
26702670
continue;
2671+
/* skip $td */
2672+
if (CLASSG(mem_sptr) && DESCARRAYG(mem_sptr))
2673+
continue;
26712674
if (XBIT(58, 0x10000) && POINTERG(mem_sptr) && !F90POINTERG(mem_sptr)) {
26722675
SST *astkp;
26732676
int aast;

0 commit comments

Comments
 (0)