Am Montag, dem 24.11.2025 um 22:28 -0800 schrieb Andrey Tarasevich via Gcc:
> ... no, apparently C23 has not done anything about it. C23 took care of a 
> somewhat 
> related issue with qualification of arrays
> 
>   typedef int A[10];
>   void foo(const A *p) {}
> 
>   int main(void)
>   {
>     A a;
>     foo(&a); /* invalid before C23 */
>   }
> 
> but treatment of qualified multilevel pointers remains unchanged.

Yes, this was me.   The const change is under discussion for C2y
and generally has support.  I think we could already implement it
in GCC as an extension.

Martin

Reply via email to