MODULE TESTS dimension :: k(4) CONTAINS function k() k = 35 end function k END MODULE is invalid (variable "k" vs. function "k"), but not detected. Needs to be fixed in decl.c's get_proc_name; I have a patch, but it causes regressions
There are multiple issues with function names, i.e. where a function symbol is picked up which shouldn't. See PR34714 for another example.
And Pr34910.
Yes indeed - confirmed. Paul
Still current on trunk.
If the example in comment #0 is changed as follows: MODULE TESTS dimension :: k(4) CONTAINS function k() result (kk) kk = 35 end function k END MODULE TESTS the code - although still invalid - still compiles, but the dump-tree is completely different. I also see big differences in the dump-tree between comment #0 and the above for 9-trunk, but not for 8-branch. ISTR a patch (Steve) that fixed a related issue with RESULT(), maybe that is the place to look for a fix?