git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1955
4a8a32a2-be11-0410-ad9d-
d568d2c75423
if (IS_FUNC (LTYPE (tree)))
{
- werror (E_ILLEGAL_ADDR, "address of function");
- goto errorTreeReturn;
+ // this ought to be ignored
+ return (tree->left);
+ //werror (E_ILLEGAL_ADDR, "address of function");
+ //goto errorTreeReturn;
}
if (IS_LITERAL(LTYPE(tree)))
val = list2val (ilist);
+ if (!val) {
+ // an error has been thrown allready
+ val=constVal("0");
+ }
+
if (IS_LITERAL(val->etype)) {
if (compareType(type,val->etype)==0) {
werror (E_INCOMPAT_TYPES);