On Tue, 21 Jan 2025, Martin Uecker wrote: > The bigger issue seems that if you forward reference a member, you > do not yet know its type. So whatever syntax we pick, general expressions > seem problematic anyway: > > struct { > char *buf [[counted_by(2 * .n + 3)]]; > unsigned int n;
That's why N3188 would require such a not-yet-declared member to have type const size_t. -- Joseph S. Myers josmy...@redhat.com