From: SourceForge.net <no...@so...> - 2010-09-23 19:29:32
|
Bugs item #1723280, was opened at 2007-05-22 10:31 Message generated for change (Comment added) made by spth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1723280&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pic16 target Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Raphael Neider (tecodev) Assigned to: Raphael Neider (tecodev) Summary: Initialized pointers to structs are not supported Initial Comment: The following code fragment does not compile for the pic16 port, although it is perfectly legal and potentially useful: <code name="init-ptr-struct.c"> struct foo { int a; }; struct foo f={1}; struct foo *g=&f; // This line fails! </code> sdcc 2.7.0, r4810 fails with $ sdcc -mpic16 -p18f1220 init-ptr-struct.c at 5: error 129: pointer types incompatible ---------------------------------------------------------------------- >Comment By: Philipp Klaus Krause (spth) Date: 2010-09-23 21:29 Message: I just verified that this problem still exists in 2.9.7 #5983. Philipp ---------------------------------------------------------------------- Comment By: Maarten Brock (maartenbrock) Date: 2009-11-01 22:28 Message: Problem is probably in glue.c. Please compare with SDCCglue.c. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1723280&group_id=599 |