Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Generate proper array crefs for a[1].b.c (previously it turned into a.b.c)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8597 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 12, 2011
1 parent 027b299 commit ccdddf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/susan_codegen/SimCode/SimCodeC.tpl
Expand Up @@ -2579,7 +2579,7 @@ template arrayCrefCStr2(ComponentRef cr)
::=
match cr
case CREF_IDENT(__) then '<%unquoteIdentifier(ident)%>'
case CREF_QUAL(__) then '<%unquoteIdentifier(ident)%>$P<%arrayCrefCStr2(componentRef)%>'
case CREF_QUAL(__) then '<%unquoteIdentifier(ident)%><%subscriptsToCStr(subscriptLst)%>$P<%arrayCrefCStr2(componentRef)%>'
else "CREF_NOT_IDENT_OR_QUAL"
end arrayCrefCStr2;

Expand Down

0 comments on commit ccdddf9

Please sign in to comment.