On 2025-08-07 17:24:01 +0200, Vincent Lefevre wrote:
>    { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
>      typedef const int *iptr;
>      iptr p = 0;
>      ++p;
> +    if (!p) return 0;
>    }

BTW, I'm wondering whether this test is likely to generate a warning
by future compilers, as AFAIK, incrementing a null pointer is UB.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to