| View previous topic :: View next topic |
| Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1929
|
Posted: Fri Dec 05, 2025 4:09 am Post subject: Latest FTN95 does not accept * as format repetition count |
|
|
Given the following program:
| Code: |
program testg0
implicit none
character(*), parameter :: cfmt = '(*(g0,1x))'
integer :: i,j,k
i=2; j=3; k=i*j
print cfmt,i,j,k
end program testg0
|
the compiler says:
| Code: |
S:\>ftn95 /check tg0.f90 /link
[FTN95/Win32 Ver. 9.14.0 Copyright (c) Silverfrost Ltd 1993-2025]
ERROR S:\tg0.F90 6: Unknown edit descriptor '*', or missing comma
1 ERROR [<TESTG0> FTN95 v9.14.0]
*** Compilation failed
|
GFortran 11.4 accepts the code, and running the program produces the output
|
|
| Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8307 Location: Salford, UK
|
Posted: Fri Dec 05, 2025 8:28 am Post subject: |
|
|
mecej4
Thank you for the feedback. I will add this to the list as a missing feature.
It looks like this has never been implemented in FTN77 and FTN95.
Off hand I don't know when it was added to the Fortran Standard. |
|
| Back to top |
|
 |
mecej4
Joined: 31 Oct 2006 Posts: 1929
|
|
| Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8307 Location: Salford, UK
|
Posted: Fri Dec 05, 2025 11:43 am Post subject: |
|
|
| This has now been implemented for the next release of FTN95. |
|
| Back to top |
|
 |
wahorger

Joined: 13 Oct 2014 Posts: 1275 Location: Morrison, CO, USA
|
Posted: Fri Dec 05, 2025 2:55 pm Post subject: |
|
|
| This is a great addition! The link describes this all so well! |
|
| Back to top |
|
 |
|