This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/6660
> Wonderful. I'm assuming you have a copy of msvc somewhere?
I do. MSC (CL v12.00.8168 if it matters) can compile this [fixed]
example:
typedef struct {
int x;
} a;
typedef struct {
a;
int y;
} b;
int foo(b *n) {
return n->x + n->y;
}
> What do you think, by the by, of limiting this sort of ugliness to
> some sort of -fmsvc-{lossage,compatibility} switch?
I think this would be a useful extension for lots of targets, not just
for windows compatibility.