hello,
 
i think i found a bug in the sdcc pic16 port:
 
struct foo {
  int a;
};
struct foo f={1};
struct foo *g=&f;
 
$ sdcc -c -mpic16 -p18f452 bug.c
Internal error: validateLink failed in SPEC_SCLS(cexpr->etype) @ SDCCast.c:1513: expected SPECIFIER, got null-link
 
I would like to fix this bug, does anyone know what might be the cause of this bug?
 
David Janssens