[Bug c/84531] New: c/c++: bogus warning for functions with different argument lengths but compatible arguments
siddhesh at gotplt dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 23 16:13:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84531
Bug ID: 84531
Summary: c/c++: bogus warning for functions with different
argument lengths but compatible arguments
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: siddhesh at gotplt dot org
Target Milestone: ---
gcc trunk throws a bogus warning about incompatible function cast when the cast
target and the function have different argument lengths but the same arguments
for the common subset. An example of this is the PyCFunction <->
PyCFunctionWithKeywords cast in python.
Patch posted along with test case:
https://gcc.gnu.org/ml/gcc-patches/2018-02/msg01315.html
More information about the Gcc-bugs
mailing list