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

http://d.puremagic.com/issues/show_bug.cgi?id=7533