Guard against using OBJECT=0 as array index#17
Guard against using OBJECT=0 as array index#17apthorpe wants to merge 1 commit intoQuuxplusone:patchesfrom
Conversation
|
@apthorpe: Thanks very much for this patch! For now I'm going to not merge this patch; but leave it open; but also put it way at the bottom of my list of things to think about. |
|
Fair enough. It was written assuming This is sort of a rare condition. You only see the segfault issue if you if you enable bounds checking and you enter specific verbs without a noun. Again, I totally understand your position on invasive patches so it's not like I'm codehurt over rejection :) Consider this to be an "Oh, by the way...." if or when you do a rewrite or if you see any user reports about this issue (doubtful but possible). Other trivia: I found a reference for all those commented-out Again, thanks for taking the time to look it over. I'm making good progress on my conversion to Fortran 2018. If I find any more potentially game-breaking weirdness, I'll pass it along as a courtesy. |
This should trap any instance of
OBJECTbeing used as an array index inmainwhenOBJECTis zero. The original user experience is preserved but it allows the code to be built with-fcheck=bounds