https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64825

Dimitry Andric <dimitry at andric dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dimitry Andric <dimitry at andric dot com> ---
Tried this again with a more recent gcc (13.3.0), and now it warns:

cast-qual.c: In function 'void* baz(const foo*)':
cast-qual.c:7:19: warning: cast from type 'const int (*)[1]' to type 'void*'
casts away qualifiers [-Wcast-qual]
    7 |         void *p = (void *)&f->bar;
      |                   ^~~~~~~~~~~~~~~

I'm not sure when it was fixed, but this bug can be closed now.

Reply via email to