projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed the << promotion for ops
[fw/sdcc]
/
src
/
SDCC.y
diff --git
a/src/SDCC.y
b/src/SDCC.y
index 83409a13eee5b778e5622d262a60f7db466a8d51..4a7ac6cfc2e3ac0beb8062c66926002ba08a90db 100644
(file)
--- a/
src/SDCC.y
+++ b/
src/SDCC.y
@@
-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;
}
}