[Bug c/81777] Compiler doesn't detect wrong function declaration

2017-08-09 Thread jsiebert at poczta dot wp.pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777 --- Comment #1 from jsiebert at poczta dot wp.pl --- file test.c: #include "testarg.h" int main(void) { testarg(); return 0; }

[Bug c/81777] New: Compiler doesn't detect wrong function declaration

2017-08-09 Thread jsiebert at poczta dot wp.pl
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jsiebert at poczta dot wp.pl Target Milestone: --- Is it possible to miss wrong declaration of function in seperate include file. An example: file testarg.c: #include typedef struct { int c; } test_t; void