You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you compile the above program with gfortran, the following error message is obtained. The message correctly points out an error in the program.
$ gfortran test.f90test.f90:3:16: 3 | write(*, *) 'NG' | 1Error: Unexpected WRITE statement in CONTAINS section at (1)
With flang-new, the following not-so-kind error message is obtained.
$ flang-new test.f90error: Could not parse test.f90./test.f90:3:1: error: expected 'END' write(*, *) 'NG' ^./test.f90:3:1: in the context: END PROGRAM statement write(*, *) 'NG' ^./test.f90:1:1: in the context: main program write(*, *) 'OK' ^./test.f90:3:1: error: expected 'END PROGRAM' write(*, *) 'NG' ^./test.f90:3:1: in the context: END PROGRAM statement write(*, *) 'NG' ^./test.f90:1:1: in the context: main program write(*, *) 'OK' ^