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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.3, 4.3.5, 4.4.7, 4.8.5,
                   |                            |4.9.4, 5.4.0, 6.4.0, 7.3.0,
                   |                            |8.2.0, 9.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
No improvement in GCC 9.0 with either NULL (expanded to __null) or nullptr:

$ cat pr70180.C && gcc -S -Wall -Wextra -Wpedantic pr70180.C 
void *p = (int*)nullptr + 1;
void *q = (int*)nullptr + 0;
void *r = (void *)((int*)nullptr - (int*)nullptr);

Reply via email to