https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96211
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That is because the testcase is invalid. When the a function has two int arguments, you need to call it with 2 int arguments, calling it with no arguments is UB.