When called from XQuery, the distinct-nodes() function
crashes with an internal error (it says the function
should have been resolved at compile time).
Reported by Juliane Harbarth
Logged In: YES
Source code fixed
Fixed in 7.6.5
The bug still occurs in 7.6.5 if the call to
distinct-nodes() occurs within a user-defined function.
I have extended the fix.
Fixed (again) in 7.7