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

Attachment: t.patch
Description: Binary data

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

Reply via email to