https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64526
--- Comment #5 from Chengnian Sun <chengniansun at gmail dot com> --- (In reply to jos...@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.