From 3b6f73c2770e08645020fcc24ab8e660c98fa8a5 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 19 Mar 2023 20:16:36 -0500 Subject: [PATCH] Prohibit "typedef" in function definitions. --- Parser.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser.pas b/Parser.pas index df1a762..8232870 100644 --- a/Parser.pas +++ b/Parser.pas @@ -3942,7 +3942,7 @@ if isFunction then begin {local declaration} else begin - if not first then + if (not first) or (declSpecifiers.storageClass = typedefsy) then Error(22); if variable^.state = defined then Error(42);