On Tue, 21 Jan 2025, Martin Uecker wrote:

> Coudn't you use the rule that .len refers to the closest enclosing structure
> even without __self__ ?  This would then also disambiguate between designators
> and other uses.

Right now, an expression cannot start with '.', which provides the 
disambiguation between designators and expressions as initializers.  Note 
that for counted_by it's the closest enclosing *definition of a structure 
type*.  That's different from designators where the *type of an object 
being initialized by a brace-enclosed initializer list* is what's 
relevant.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to