On Sat, Nov 22, 2008 at 12:30:40PM +0100, Masha Rabinovich wrote:
> 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
> }

This seems to be the same issue I reported some time ago regarding the
precedence of the sizeof operator.

 http://www.mail-archive.com/[email protected]/msg01471.html

Cheers,
Marc

-- 
 Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to