Skip to content

Fortran 90: add common extensions #4086

@suehshtri

Description

@suehshtri

The following do not appear to be in the Fortran 2003 standard (though it is hard to tell given that the standard document is not freely available).

  • integer literal using hexadecimal when prefixed with #: #20200c
  • use dollar in a name: mylib$myfunc

While neither are in the standard, the use is common in the wild, the latter for certain vendor extensions.
-fdollar-ok is a gfortran dialect option.

The grammar would be more useful if it had some toggles to allow for these out-of-standard-but-common language features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions