[cfe-dev] Recent minor C regression (maybe)
Rafael EspĂndola
rafael.espindola at gmail.com
Thu Apr 4 09:16:04 PDT 2013
On 4 April 2013 11:51, Bruce Stephens <bruce.r.stephens at gmail.com> wrote:
> The following dubious (IMHO) code no longer compiles, though it does in
> other popular compilers.
>
> static void a(void);
> extern void a();
> static void a(void) {}
>
> (In this specific case the code is partly generated: the extern
> declaration is generated and the static ones are hand generated.)
>
> I'm guessing this is caused by reverting the reversion of r178663 (it
> touches what looks like the right bit of code and it's dated April 3, so
> the timing's about right), but I haven't checked.
>
> (Not sure whether the code should be legal. I'd guess we don't have the
> only instance of this kind of thing.)
My bug. Looking at it.
Thanks for reporting it!
Cheers,
Rafael
More information about the cfe-dev
mailing list