This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/64526] No warning on function call with excessive arguments


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]