fix Issue 11769 - Wrong line number in "matches both" error message