On 4/29/05, Brantley Coile <[EMAIL PROTECTED]> wrote:
> > I think this actually worked in the V7 C compiler and PCC, no?
> It did.

I tried this with V7 on simh.

$ ed g.c
?g.c
a
main(){struct{int(*f)();}*s; s->f();}
.
w
38
!cc g.c
g.c:1: Call of non-function
!
!pcc g.c
g.c
"g.c", line 1: compiler error: no table entry for op UCALL
!
s/s->f/(*&)/p
main(){struct{int(*f)();}*s; (*s->f)();}
w
41
!cc g.c
!

Reply via email to