In beta 3, the followingworks as expected:
dense tmp = add_reduce( nested::parse("{{1, 2}, {3, 4, 5}}") * nested::parse("{{1, 1}, {1, 1, 1}}") );
...but this fails:
void test(dense &out, nested &arg1, nested &arg2)
{
out = add_reduce(arg1 * arg2);
};
dense tmp;
call(test)(tmp, nested::parse("{{1, 2}, {3, 4, 5}}"), nested::parse("{{1, 1}, {1, 1, 1}}"));
...producing these errors:
"ArBB GC: Memory leak when destructing object wrapper"
"Internal error: CTE_COMPILER_ERROR COMP_ERROR: Dynamic Compiler Internal Error"
This seems to happen only when there is a math operationbefore add_reduce, andcoding an intermediatetemporary e.g. "foo = arg1 * arg2;" in test() does not prevent the problem.
Please advise,
- paul



