This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c/22052] [4.0/4.1 Regression] redefinition of inlinefunction succeeds
> What does the patch do for the case of two definitions, both extern
> inline, in the same translation unit? The GCC versions (3.0 and later) I
> have around reject it, older ones accept it. In any case, I think this
> case should have a testcase.
>
> extern inline int foo(void) { return 0; }
> extern inline int foo(void) { return 0; }
>
This testcase fails with a redefinition error... is this the behavior we
want?
> In addition I think the tests should specify -std=gnu89 explicitly in
> their dg-options.
>
OK.
-eric