[4847] in Athena Bugs

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

rt 6.4r: hc2.1y

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Mon Apr 30 14:31:24 1990

Date: Mon, 30 Apr 90 14:31:05 EDT
From: Ken Raeburn <Raeburn@MIT.Edu>
To: bugs@ATHENA.MIT.EDU
Version 2.1y treats the two assignments differently; I believe they
should be equivalent:

    extern struct {                
	char *(*put)();
    } *p;

    extern char *put_file();
    extern int i;

    void foo()
    {
	p->put = put_file;
	p->put = i ? put_file : 0;  /* line 11 */
    }

% hc2.1y -O -S bar.c
E "bar.c",L11/C14:      Type "char*()" is not assignment compatible
with type "char*(*)()".
1 user error   No warnings
Exit 8               hc2.1y -O -S bar.c
%

This came from building zwgc....

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