You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From https://stackoverflow.com/questions/59442521/use-of-variable-in-own-initializer
After the resolution of CWG2256¹ changed the rules of an object lifetime start, unsigned char x = x; no longer initializes x with its own indeterminate value as the Example in [basic.scope.pdecl]/1 says, but triggers undefined behavior, because the initializer accesses the object whose lifetime has not started yet (because variable initialization hasn't completed).
Which, if ignore references, kinda mixes variables with objects…