diff -r d82c580b6596 -r 0ecf77e203c0 tools/pas2c/Pas2C.hs --- a/tools/pas2c/Pas2C.hs Fri Oct 05 21:31:58 2018 +0200 +++ b/tools/pas2c/Pas2C.hs Fri Oct 05 21:41:56 2018 +0200 @@ -612,7 +612,7 @@ varDeclDecision True True varStr expStr = varStr <+> expStr varDeclDecision False True varStr expStr = if externVar then varStr else varStr <+> expStr varDeclDecision False False varStr expStr = varStr <+> expStr - varDeclDecision True False _ _ = empty + varDeclDecision True False varStr expStr = varStr <+> expStr arrayDimension a = case a of ArrayDecl Nothing t' -> let a' = arrayDimension t' in if a' > 3 then error "Dynamic array with dimension > 4 is not supported." else 1 + a'