Community
Participate
Working Groups
Build Identifier: M20100909-0800 With Photran 6.0.5.201011100956, the __DATE__ macro is not parsed properly. The outline view shows a SyntaxException on the line which follows the macro. Reproducible: Always Steps to Reproduce: 1. Create a new Fortran source file, e.g. with extension .f90 so that Photran expects free-form and C preprocessed 2. Add the following lines to the file: MODULE TEST CHARACTER(LEN=*),PARAMETER :: COMPILE_DATE = __DATE__ LOGICAL :: INTERACTIVE = .FALSE. END MODULE TEST 3. Check the Outline view - I get this: SyntaxException: Syntax error: Unexpected logical (...)
Created attachment 189388 [details] Reproducer
Hi Alexis, I tried this in Photran 6.0 and 7.0. I think the problem is that you're using a .f90 extension, which is *unpreprocessed* free form. If you change the filename extension to .F90 (capital F), it will be treated as C preprocessed free form and will parse correctly. Alternately, you can change the source form settings in the project properties (right-click the project > Properties > Fortran > Source Form) to associate C preprocessed free form with the .f90 (lowercase f) filename extension. Hope this helps. Jeff
Thanks - I can confirm that 1. I didn't pay attention to the capitalisation 2. Your fixes work 3. There was never a bug in the first place. Oops - sorry about that. Thanks a lot!
Not a problem; glad to help :-)