fixed the << promotion for ops
[fw/sdcc] / src / SDCC.y
index 83409a13eee5b778e5622d262a60f7db466a8d51..4a7ac6cfc2e3ac0beb8062c66926002ba08a90db 100644 (file)
@@ -1156,6 +1156,12 @@ abstract_declarator2
        // $1 must be a pointer to a function
        sym_link *p=newLink();
        DCL_TYPE(p) = FUNCTION;
+       if (!$1) {
+        // ((void (code *) (void)) 0) ()
+        $1=newLink();
+        DCL_TYPE($1)=CPOINTER;
+        $$ = $1;
+       }
        $1->next=p;
      }
    }