From: SourceForge.net <no...@so...> - 2009-04-27 19:57:42
|
Bugs item #2782405, was opened at 2009-04-27 21:57 Message generated for change (Tracker Item Submitted) made by bsathome You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2782405&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: BsAtHome (bsathome) Assigned to: Nobody/Anonymous (nobody) Summary: Internal error: validateLink failed in SPEC_BLEN Initial Comment: Double dereference on an array of pointers addressing a bitfield causes an internal error. See code below. Compiled with: $ sdcc/bin/sdcc -mpic16 -p18f2550 -obitfield bitfield.c Internal error: validateLink failed in SPEC_BLEN(operandType(result)) @ /home/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic16/gen.c:8202: expected SPECIFIER, got DECLARATOR Versions tried: - 2.8.0 (Fedora 9 stock) - sdcc-snapshot-i386-unknown-linux2.5-20090427-5436.tar.bz2 --- begin code bitfield.c --- struct bitfield { unsigned bit:1; } *bla[1]; void func(void) { if(bla[0]->bit) bla[0]->bit = 0; } --- end code bitfield.c --- -- Greetings Bertho ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2782405&group_id=599 |