Permit one-argument version of static_assert in C23 mode.

This commit is contained in:
Stephen Heumann 2024-08-30 13:52:09 -05:00
parent 1db26a88ad
commit 22627cbc0d

View File

@ -2782,8 +2782,12 @@ if (expressionType = nil) or (expressionType^.kind <> scalarType) then
Error(18) Error(18)
else if expressionValue = 0 then else if expressionValue = 0 then
Error(132); Error(132);
Match(commach, 86); if token.kind = commach then begin
Match(stringconst, 83); NextToken;
Match(stringconst, 83);
end {if}
else if cStd < c23 then
Error(86);
Match(rparench, 12); Match(rparench, 12);
Match(semicolonch, 22); Match(semicolonch, 22);
end; {DoStaticAssert} end; {DoStaticAssert}