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

Albert Netymk <albertnetymk at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |albertnetymk at gmail dot com

--- Comment #3 from Albert Netymk <albertnetymk at gmail dot com> ---
Maybe related. The first two invocations of `f` trigger a warning. Clang
doesn't complain.

```
static const int g_zero = 0;

void f(void* value);

void g() {
    f(reinterpret_cast<void*>(0));

    f(reinterpret_cast<void*>(g_zero));

    int y = g_zero;
    f(reinterpret_cast<void*>(y));
}
```

Reply via email to