X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCC.y;h=4a7ac6cfc2e3ac0beb8062c66926002ba08a90db;hb=96cf26b74b78de7e6f4afc6cf839eaa9896e7cd2;hp=83409a13eee5b778e5622d262a60f7db466a8d51;hpb=d3b1ccb2d5c5999da084145c34cca85b6f8beff1;p=fw%2Fsdcc diff --git a/src/SDCC.y b/src/SDCC.y index 83409a13..4a7ac6cf 100644 --- 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; } }