[Bug c/17569] error: incompatible types in assignment

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Sep 20 13:59:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-20 13:58 -------
the error is correct, you are assigning a pointer to a struct.
Instead of:
  *d = &c->b;
You want:
  d = &c->b;

This is a C question, next time look up this in a C book first.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17569



More information about the Gcc-bugs mailing list