HOFs declared as global variables in the prolog crash Zorba
Bug #1018333 reported by
Nicolae Brinza
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Undecided
|
Nicolae Brinza |
Bug Description
E.g., the query below crashes zorba
xquery version "3.0";
declare namespace op = "http://
declare namespace f = "http://
declare option op:enable "f:hof";
declare variable $func := function(
declare function local:scramble($x as function(xs:string) as xs:string, $y as xs:string) as xs:string {
$x($y)
};
local:scramble(
Related branches
lp:~zorba-coders/zorba/hof-merge
- Markos Zaharioudakis: Approve
-
Diff: 1671 lines (+568/-573)9 files modifiedsrc/compiler/expression/expr_clone.cpp (+14/-6)
src/compiler/expression/expr_manager.cpp (+10/-18)
src/compiler/expression/expr_manager.h (+2/-12)
src/compiler/expression/function_item_expr.cpp (+40/-31)
src/compiler/expression/function_item_expr.h (+2/-21)
src/compiler/translator/translator.cpp (+429/-470)
src/runtime/function_item/function_item.cpp (+1/-5)
src/runtime/function_item/function_item.h (+70/-8)
test/fots/CMakeLists.txt (+0/-2)
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
milestone: | none → 2.9 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in the trunk. Test added as hof-104.xq