Project

Profile

Help

Bug #6485

closed

Undeclared variable in XQuery - poor diagnostics

Added by Michael Kay 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2024-07-19
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

If a query contains a reference to an undeclared variable, we assume initially it is a forward reference to a global variable declared later. If it is still outstanding at the end of the module, we report an error that the variable is undeclared, but we have no location information for where the variable reference appeared. Example attached.


Files

test.xq (26.8 KB) test.xq Michael Kay, 2024-07-19 13:40
Actions #1

Updated by Michael Kay 4 months ago

  • Status changed from New to Closed
  • Applies to branch trunk added
  • Fix Committed on Branch trunk added
  • Platforms .NET, Java added

I've fixed this for the 13.x branch.

Please register to edit this issue

Also available in: Atom PDF