This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/8518
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Nov 2002 15:00:25 -0800
- Subject: Re: [PATCH] Fix PR c/8518
- References: <200211170208.31341.ebotcazou@libertysurf.fr>
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~