fix issue 7533 - Error with no line number with pure static ctor