fix issue 7533 - Error with no line number with pure static ctor
Merge pull request #2108 from hpohl/7533

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