deff('test()',"d=dir("".""), d.name(1)"), macr2tree("test") => CRASH (extraction from t-list). head_comments("test") is KO
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
It looks that as soon as in a function we make an extraction from a tlist (here of type "dir"),
calling macr2tree() on the function crashes Scilab. The crash is 100% reproducible.
I met this bug with uman(). It occurs when using head_comments().
Finally, the guilty line in head_comments() is the macr2tree() one.
When in the function the t-list extraction d.name(1) is commented, the crash disappears.
In addition to head_comments(), sci2exp(), tree2code(), some functions in the m2sci module,
and some tests call as well macr2tree()
ERROR LOG:
----------
none: crash
HOW TO REPRODUCE THE BUG:
-------------------------
function test()
d = dir(".")
d.name(1)
endfunction
macr2tree(test)
OTHER INFORMATION:
------------------
Windows7_x64