On Tue, 25 Nov 2025 at 07:32, Martin Uecker via Gcc <[email protected]> wrote:
>
> 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.

Please see https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3674.pdf
I have a work-in-progress patch to implement that for GCC, but I don't
get paid to work on it and I've been taking a break.

-- 
Christopher Bazley

Reply via email to