1. 12
  1.  

  2. 1

    The mistake boils down to use of auto followed by unpredictable, compiler response. This kind of thing might be an argument in favor of static typing if the implementation of that is more straight-forward than anything automatic for a given compiler. The productivity benefits of not using static typing might outweigh the safety benefit for many people as bugs like this get caught and fixed in products with a lot of uptake.