mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-03-13 19:35:46 +00:00
Report an error if a type name is missing in a _Generic expression.
This commit is contained in:
parent
8fd091e119
commit
4381b97f86
@ -1914,6 +1914,11 @@ var
|
||||
NextToken;
|
||||
typesMatch := false;
|
||||
if token.kind <> defaultsy then begin
|
||||
if not (token.kind in specifierQualifierListElement) then begin
|
||||
Error(26);
|
||||
while not (token.kind in [colonch,commach,rparench,eofsy]) do
|
||||
NextToken;
|
||||
end; {if}
|
||||
TypeName; {get the type name}
|
||||
currentType := typeSpec;
|
||||
if (currentType^.size = 0) or (currentType^.kind = functionType) then
|
||||
|
Loading…
x
Reference in New Issue
Block a user