View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Sun Aug 18, 2019 7:27 pm Post subject: No warning when one should be given |
|
|
The following code (with comments) illustrates the issue. Assigning to an INTEGER, a CHARACTER is permitted, and generates a warning in the executable code, but no warning in the variable declarations. I found this originally in my TYPE, and extended the "missing warning" through a few more examples here.
Code: |
type:: abcd
sequence
integer:: defg=' ' ! no warnings
end type
type (abcd):: wxyz
integer:: i='B' ! no warnings
i=' ' ! warning 362 during compile
write(*,90000)wxyz%defg ! prints "20202020"
90000 format(z8.8)
end |
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon Aug 19, 2019 6:56 am Post subject: |
|
|
Thank you for the feedback. I have made a note that this needs fixing. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Tue Aug 20, 2019 2:22 pm Post subject: |
|
|
This failure has now been fixed for the next release of FTN95. |
|
Back to top |
|
|
|