Project

Profile

Help

Bug #2228

closed

Invalid slot number when xsl:accumulator/@initial-value uses local variables

Added by Michael Kay over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
Start date:
2014-11-19
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

An internal error (invalid slot number for local variable) occurs when the xsl:accumulator/@initial-value expression uses local variables (e.g. in a for/let/some/every expression)

Test case accumulator-039 has been created.

Actions #1

Updated by Michael Kay over 9 years ago

A patch has been committed on the 9.6 nd 9.7 branches

Actions #2

Updated by Michael Kay over 9 years ago

  • Status changed from In Progress to Resolved
Actions #3

Updated by Michael Kay over 9 years ago

There is a similar problem when local variables are used in the @new-value expression. In this case the problem is that slot 0 is used both for $value and for a conventional local variable, meaning that the value of the declared local variable overwrites $value. Also tested by accumulator-039; patch being committed to 9.6 and 9.7.

Actions #4

Updated by O'Neil Delpratt over 9 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.3

Bug fix patch applied to the Saxon 9.6.0.3 maintenance release

Actions #5

Updated by O'Neil Delpratt over 8 years ago

  • Sprint/Milestone set to 9.6.0.3
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.3 added

Please register to edit this issue

Also available in: Atom PDF