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

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
```
struct p {
        int (*bar)();
};

void baz() {
    struct p q;
    q.bar(1);
}
```

```
$ gcc /tmp/a.c
/tmp/a.c: In function ‘baz’:
/tmp/a.c:7:5: error: too many arguments to function ‘q.bar’
    7 |     q.bar(1);
      |     ^
```

Reply via email to