exceptions in default arguments are handled correctly