This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bogus "assignment from incompatible pointer type" ?
- To: gcc-bugs at gcc dot gnu dot org
- Subject: bogus "assignment from incompatible pointer type" ?
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Sun, 14 May 2000 21:53:38 -0700
gcc complains about "assignment from incompatible pointer type" in
this code:
const struct hashnode **foo;
void x(struct hashnode **y)
{
foo = y;
}
but does not object to the assignment if there is only one layer of
pointers, or 'foo' is declared as 'struct hashnode *const *'. Why is
this?
zw