From: johanknol Date: Fri, 22 Feb 2002 09:59:55 +0000 (+0000) Subject: fixed bug #516625 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e483295e5a0539ea4cea6a708f37fb94ea557c08;p=fw%2Fsdcc fixed bug #516625 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1947 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- 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; } }