Hi all,

please find the attached patch which should fix the problem of parsing
tagged anonymous structs, when ms-extensions is enabled.

The following code can be parsed by the MS C compiler and GCC, but
clang gave an error on couldn't resolve the anonymous struct member
"c".

struct a {
 struct b{
   int c;
 };
};

void foo()
{
  struct a e;
  e.c = 0;
}

This is my first patch submission here, any feedback would be welcome.

Jianjiang Ceng

Attachment: anonymous_struct.patch
Description: Binary data

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

Reply via email to