This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64526] No warning on function call with excessive arguments
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Jan 2015 17:15:51 +0000
- Subject: [Bug c/64526] No warning on function call with excessive arguments
- Auto-submitted: auto-generated
- References: <bug-64526-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64526
--- Comment #5 from Chengnian Sun <chengniansun at gmail dot com> ---
(In reply to joseph@codesourcery.com from comment #3)
> "has no parameters" does not mean "has a type that includes a prototype
> with no parameters". See DR#317.
>
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_317.htm
Thanks for your pointer.
But from the perspective of diagnostics, I believe it is worthy to emit a
warning on this case, as the execution of the function call is undefined
according to the standard.