|
From: | Masha Rabinovich |
Subject: | Re: [Tinycc-devel] minor tcc bug |
Date: | Sat, 22 Nov 2008 13:46:08 +0100 |
what does "sizeof (s).b" mean?Although I do not understand this statement, it couldbe compiled in VC2008.-jl2008/11/22 Masha Rabinovich <address@hidden>
_______________________________________________struct S
{
char b[128];
};
main()
{
struct S s, *ps;
printf("%d\n", sizeof s.b); // ok
printf("%d\n", sizeof ps->b); // ok
printf("%d\n", sizeof (s.b)); // ok
printf("%d\n", sizeof (ps->b)); // ok
printf("%d\n", sizeof ((s).b)); // ok
printf("%d\n", sizeof ((ps)->b));// ok
printf("%d\n", sizeof (s).b); // fail
printf("%d\n", sizeof (ps)->b); // fail
}
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
--
Best Regards
-----------
Jerry Luo
_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |