Sorry, this causes a failure in Sema/extern-redecl.c. Good news is
that I might be able to build a test from that :-)

On 17 December 2012 17:43, Rafael Espíndola <[email protected]> wrote:
> Enea noticed that we were not merging storage classes in the second
> declaration of y in
>
> static int y;
> void foo(void) {
>   extern int y;
> }
>
> The attached patch fixes it, but it needs a testcase. I was not able
> to write one so far since most places that look at the canonical decl.
> Any ideas how to add one?
>
> Cheers,
> Rafael

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to