[cfe-commits] [patch] [rfh] Merge storage classes in more cases

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Dec 17 14:49:47 PST 2012


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 <rafael.espindola at gmail.com> 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




More information about the cfe-commits mailing list