A variable is in scope in its own initializer, but it is undefined behavior to load from it before it is first assigned to.

Do not use a variable in its own initializer unless it is part of an address calculation or a sizeof expression.

  • SEI CERT Secure Coding Standard: EXP53-CPP. Do not read uninitialized memory