[9136] in Athena Bugs

home help back first fref pref prev next nref lref last post

DECstation cc bug

daemon@ATHENA.MIT.EDU (John Carr)
Mon Mar 30 04:52:51 1992

To: bugs@Athena.MIT.EDU
Cc: epeisach@Athena.MIT.EDU
Date: Mon, 30 Mar 1992 04:52:38 EST
From: John Carr <jfc@Athena.MIT.EDU>


cc on a DECstation (paris) refuses to compile this file:

	typedef struct { int a,b,c,d,e; } type;
	struct a {
	  void (*fnp)(struct x *, type *);
	};

It says:

ccom: Error: /tmp/test2.c, line 3: syntax error
        void (*fnp)(struct x *, type *);
      -----------------------------^
ccom: Error: /tmp/test2.c, line 4: zero sized structure
      };
      ^

If the declaration of "fnp" is not inside a structure, the compiler
does not report an error.


home help back first fref pref prev next nref lref last post