[gnu.gcc.bug] int *x =

drh@PRINCETON.EDU (Dave Hanson) (03/26/89)

gcc erroneously warns about assignment of 0 to a pointer
when the 0 is buried in a comma expression; e.g., in
lines 4 & 8 below.

% cat bug.c
struct foo *x;
struct foo *a(n) {
        x = 0;
        x = (u(),0);
        if (n)
                return (0);
        else
                return (u(),0);
}
% gcc -v -S bug.c
gcc version 1.34
 /usr/local/gnu/lib/gcc-cpp -v -undef -D__GNUC__ -Dvax -Dunix -D__vax__ -D__unix__ bug.c /tmp/cc023461.cpp
GNU CPP version 1.34
 /usr/local/gnu/lib/gcc-cc1 /tmp/cc023461.cpp -quiet -dumpbase bug.c -version -o bug.s
GNU C version 1.34 (vax) compiled by GNU C version 1.34.
bug.c: In function a:
bug.c:4: warning: assignment of pointer from integer lacks a cast
bug.c:8: warning: return of pointer from integer lacks a cast