bsc-pm / mcxx

Mercurium is a C/C++/Fortran source-to-source compilation infrastructure aimed at fast prototyping developed by the Programming Models group at the Barcelona Supercomputing Center
GNU Lesser General Public License v3.0
70 stars 23 forks source link

Implement deferred character length using a descriptor array #15

Closed rofirrim closed 6 years ago

rofirrim commented 7 years ago

This is only useful for CHARACTER(LEN=:)

In Fortran we implement CHARACTER scalar type using a C array of characters. That array, which is not considered a Fortran array, never used to have a descriptor. Now that LEN can be deferred, we will represent this using a descriptor at that array.

Note that the change also introduces a couple of FIXMEs just to remind us that LEN=: is only valid in some cases.