15624) 24301 print*, 'Err301 Can not read file'
*** Error 141: Label 24301 has been used outside the block IF starting on line 15254
If i remove the entire block with this error i get another similar one but now with DO loop, telling that the label is outside some DO loop
Why the heck i get these errors? What, I can not put labels wherever i want ?
I see strange things in this subroutine with IF/ENDIF not matching according to FTN95 and KATE editor but so far could not find this bug. Fun is that little bit older program with the same not matching IF/ENDIF working OK. Comparisons of new and old program shows all new added code has perfectly matching IFs/ENDIFs... All that makes me crazy. Looks like i missed ENDIF somewhere.
And though i hate this but looks like I need to start writing codes using multiple smaller subroutines, otherwise i really can not locate any errors anymore. Even using several compilers. It is an absurd to spend whole day on that as if we live forever...
Potentially the big reason of many of my 'devilries' are the style of programming. When the source code becomes enough long any small mistake causes total devastation
UPDATE Or devilry is still a devilry ? I found hundreds of file distortions comparing files i saved for reference while editing. After rebooting computer despite all these differences (all were just added space in numerous lines) the file compiled without any problems. I had before similar unexplained problems in Windows which after reboot disappeared. But i've never seen such massive file corruptions
