satamas / fortran-plugin

Fortran language plugin for IntelliJ Idea
Apache License 2.0
80 stars 18 forks source link

Introspection does not recognize achar() as returning character(len=1) #67

Open esosnovsky-sfsw opened 4 years ago

esosnovsky-sfsw commented 4 years ago

The following line in free-form Fortran:

character(len=*), parameter :: newline   = achar(10) // "   "

Underlines achar(10) and reports:

mismatched argument typesleft argument: unknown type, right argument: character

The achar function has been in the Fortran since at least Fortran 77, and is defined as returning a character(len=1), so the warning is spurious: https://gcc.gnu.org/onlinedocs/gfortran/ACHAR.html

Note also the lack of space or any other punctuation in "typesleft".

The issue occurred with plugin version 2020.1.