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

--- Comment #3 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Just FYI, it is not related to sizeof nor memcpy nor conversion to `void*`.
another testcase:
```
struct foo;
void f(foo*, foo&);
struct foo {
    void bar(foo* src)
    {
        f(*src, *src);
        f(*this, *this);
    }
};

```

The first call to f gives the correct diagnostic. But the second one (with
*this) does NOT.

Reply via email to