make a panic message more informative and suggest -dcore-lint (see #4534)