[Bug c/33219] Error in compiling when there is a function with a char parameter called before its declaration with inline parameters.
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Aug 29 16:30:00 GMT 2007
------- Comment #9 from manu at gcc dot gnu dot org 2007-08-29 16:30 -------
Since "a" is called before being defined/declared is assumed:
extern int a();
See also: http://c-faq.com/decl/implfdecl.html
The error message could be a bit clearer by pointing out this explicitly:
a.c:7: error: conflicting types for 'a'
a.c:7: note: an argument type that has a default promotion can't match an empty
parameter name list declaration
a.c:3: error: previous implicit declaration 'extern int a()' of 'a' was here
But I doubt anyone would be interested to work on a patch for that. Would you?
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33219
More information about the Gcc-bugs
mailing list