improved warning message for constructor loops