https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79588
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think the big question is if it isn't simply too early to warn at the place you've added it, shouldn't it be done later on when the call arguments are already complete? E.g. do you warn properly for calls in templates where the arguments might be type or value dependent and it is hard to figure out what exactly they are?