4
int x = x; 

I know it is UB, but I'd like to known what prevents the language to forbid that in the first place. Is it because it is equivalent to

int x;
x = x;

?

Gem Taylor
  • 5,381
  • 1
  • 9
  • 27

0 Answers0