Skip to content

Commit

Permalink
#2642 Add missing class keyword in Fortran backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienRemy committed Jul 15, 2024
1 parent f3bb061 commit db3d952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/psyclone/psyir/backend/fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def gen_datatype(datatype, name):
'''
if isinstance(datatype, DataTypeSymbol):
# Symbol is of derived type
if datatype.is_class:
return f"class({datatype.name})"
return f"type({datatype.name})"

if (isinstance(datatype, ArrayType) and
Expand Down

0 comments on commit db3d952

Please sign in to comment.