[comp.bugs.sys5] V.4 cc bug

rfg@lupine.ncd.com (Ron Guilmette) (01/20/91)

People who have systems based on V.4 could help me by trying to compile
the following short test program and by E-mailing the results.  (Please
indicate the source of your C compiler and your V.4 port and the type
of hardware that it runs on.)

If you get a compilation error from this (perfectly legal) ANSI C code,
then your C compiler has a bug.

	typedef const char *cpt;
	
	const char *p1;
	cpt p2;
	char c;
	
	int main ()
	{
	  p1 = &c;		/* legal */
	  p2 = &c;		/* also legal */
	  return 0;
	}