Re: [RFC] Improved handling of member access operators with SmPL expression variables
From: Markus Elfring
Date: Sun Aug 30 2026 - 04:47:58 EST
>> Another SmPL script example:
>> @my_test@
>> expression hint;
>> @@
>> *hint->hint
>>
>>
>> Questionable test result (also according to the software combination “Coccinelle 1.3.2”):
>> Markus_Elfring@Sonne:…/Projekte/Coccinelle/Probe> spatch --parse-cocci show_expression_for_same_member_name.cocci
>> …
>> minus: parse error:
>> File "show_expression_for_same_member_name.cocci", line 4, column 7, charpos = 37
>> around = 'hint',
>> whole content = *hint->hint
>>
>>
>> How will development interests evolve to improve affected software components?
>> https://en.cppreference.com/c/language/operator_member_access#Member_access
>
> They will not improve. Proposed changes will be NACKed. Please stop
> asking for this. It is not in the spirit of the language.
I hope that I can convince contributors for further development possibilities.
Regards,
Markus