2 ms·
> Any other interpretation that only requires the union to be in scope would pretty much render TBAA moot for any non trivial program. An interpretation of the
by kazinator 11y ago
> Any other interpretation that only requires the union to be in scope would pretty much render TBAA moot for any non trivial program.
An interpretation of the 'visible union' rule as being in scope is the only interpretation which doesn't render that text completely unnecessary.
Of course if the access is taking place through the union, the union must be completely declared! When would you be able to access a union member as u.x, or pu->x, when the type of u or *pu is incomplete?