View previous topic :: View next topic |
Author |
Message |
Thomas
Joined: 18 Feb 2005 Posts: 56 Location: Gummersbach, Germany
|
Posted: Fri Nov 14, 2014 3:55 pm Post subject: Format label not found |
|
|
The attached fortran source file can not be compiled if the Format Statement is located before the assignment y = ...
The error does not occur if the Format Statement is moved behind the assignment.
Subroutine Fehler(x, y)
Implicit None
Integer, Intent(in) :: x
Integer, Intent(out) :: y
Character (Len=20) :: Text
1000 Format('Test:', I10)
y = Quadrat(x)
!$$$$$$ 1000 Format('Test:', I10)
Write(Text, 1000) y
Contains
Integer Function Quadrat(Value)
Integer, Intent(in) :: Value
Quadrat = Value * Value
End Function Quadrat
End Subroutine Fehler _________________ Thomas |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Fri Nov 14, 2014 4:38 pm Post subject: |
|
|
Thanks. I have logged this for investigation. |
|
Back to top |
|
 |
mecej4
Joined: 31 Oct 2006 Posts: 1899
|
Posted: Fri Nov 14, 2014 6:31 pm Post subject: |
|
|
It may have something to do with the first statement after the declarations being a Format statement. I found that adding "y=x" before the Format statement makes the problem go away.
The problem needs to be fixed, however. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Mon Jan 19, 2015 12:42 pm Post subject: |
|
|
This bug has now been fixed for the next release. |
|
Back to top |
|
 |
|