On Fri, Apr 04, 2025 at 04:25:11PM +0000, Qing Zhao wrote:
> > It is not just the parser, it is also the human reader who should be
> > able to clearly distinguish this (which is why I still prefer
> > designators syntax because this makes it perfectly clear).
> 
> Yes, the forward declaration approach is just a compromised approach in order 
> to work with 
> C++ in the future. 

I thought the forward decl approach is there just for C.
C++ doesn't really need it, it has tons of other parts of the class parsed
only when the class is complete (e.g. in class method definition bodies,
NSDMIs, ...).  So it wouldn't be really strange to let the attribute
argument be parsed for C++ only when the class is complete too.
And IMHO it should use the this->member syntax there.

        Jakub

Reply via email to