On Thu, 24 Jul 2025, Aaron Ballman wrote: > Question on the .N syntax: I thought I heard that this was something > GCC could handle, but that it still requires late parsing to ensure > type information for N is available and that was a problem. e.g., > > void func(char *buffer __counted_by(.N * sizeof(.N)), int N);
The proposed specification for .N in N3188 required the type to be size_t when not already declared (it also didn't make .N an expression, only something that could be used directly inside [], so avoiding the syntactic ambiguity with designated initializers). -- Joseph S. Myers josmy...@redhat.com