C1813: Division by zero

[ERROR]

Description

A constant expression was evaluated and found to have a zero denominator.

Example
  int i = 1/0;

  
Tips

mod or divide should never be by zero. Note that this error can be changed to a warning or less. This way code like the following can be compiled:

  int i = (sizeof(int) == sizeof(long)) ? 0 : sizeof(long) 
  / (sizeof(long)-sizeof(int))