Fix known-dimension arrays in specifiers

This commit is contained in:
Adam Sampson 2007-04-30 04:25:13 +00:00
parent 576c31aa72
commit 39ec48c1e3
2 changed files with 10 additions and 0 deletions

View File

@ -1275,6 +1275,7 @@ dataSpecifier
= dataType
<|> do s <- tryXXV sLeft sRight dataSpecifier
return $ makeArrayType A.UnknownDimension s
<|> arrayType dataSpecifier
<?> "data specifier"
specifier :: OccParser A.Type
@ -1285,6 +1286,7 @@ specifier
<|> portType
<|> do s <- tryXXV sLeft sRight specifier
return $ makeArrayType A.UnknownDimension s
<|> arrayType specifier
<?> "specifier"
--{{{ PROCs and FUNCTIONs

View File

@ -0,0 +1,8 @@
-- from cgtest07
PROC bug.308()
PROC bug.308a([10][][5]INT a)
a[3] := a[2]
:
[10][3][5]INT a :
bug.308a(a)
: