[PATCH] Fix PR c/8518
Richard Henderson
rth@redhat.com
Tue Nov 19 15:00:00 GMT 2002
On Sun, Nov 17, 2002 at 02:23:19AM +0100, Eric Botcazou wrote:
> ... the compiler gets confused because of
> the redefinition of an extern inline function:
>
> extern int inline bar () { return 0; }
> static int inline bar () { return foo(); }
Incidentally, this seems like error material. The redefinition of an
extern inline function should be neither static nor inline itself.
> PR c/8518
> * c-decl.c (duplicate_decls): Outline the second definition
> of an extern inline function in all cases.
> * gcc.c-torture/compile/20021117-1.c: New test
> * gcc.c-torture/compile/20021117-2.c: New test
I guess this is ok though.
r~
More information about the Gcc-patches
mailing list