Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] gfortran

Hello

gfortran's error messages seem to be different between versions 4.x and 5:

Code:

program delme
  implicit none
  integer, parameter :: i = 10
  i = i + 1
  print *, i
end program

4.8:
$ gfortran -o delme delme.f90
delme.f90:4.2:

   i = i + 1
   1
Error: Named constant 'i' in variable definition context (assignment) at (1)

5.1:
$ gfortran -o delme delme.f90
delme.f90:4:2:

    i = i + 1
   1
Error: Named constant 'i' in variable definition context (assignment) at (1)

Notice the delimiter between the line number (4) and the position (2). It's a point in v4.8, and a colon in v5.1

How do I change the error parser to reflect this change? Thanks
Holger


Back to the top