https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117865
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-12-01
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Better testcase:
```
void baz(int (*bar)(int)) {
bar(1, 1);
}
```
C front-end:
```
<source>: In function 'baz':
<source>:3:5: error: too many arguments to function 'bar'
3 | bar(1, 1);
| ^~~
```
C++ front-end:
```
<source>: In function 'void baz(int (*)(int))':
<source>:3:8: error: too many arguments to function
3 | bar(1, 1);
| ~~~^~~~~~
```