Bug 577131

Summary: Multiple FOR loopc cannot be exported due to name reuse of the variables BY and TO
Product: [IoT] 4DIAC Reporter: Martin Melik-Merkumians <martin.melik>
Component: 4DIAC-IDEAssignee: Martin Melik-Merkumians <martin.melik>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: alois.zoitl
Version: 2.0.0   
Target Milestone: 2.0.1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.ide/+/187515
https://git.eclipse.org/c/4diac/org.eclipse.4diac.ide.git/commit/?id=df049793a977adf9305b578afb125b730f03829b
Whiteboard:

Description Martin Melik-Merkumians CLA 2021-11-08 08:21:40 EST
Multiple FOR loops cannot be exported due to name reuse of the variables BY and TO

Each ST FOR loop generates its own set of TO and BY variables in C++ code, which are all in the same name space/context.

The compiler therefore generates a conflicting declaration error for each of these variables.
Comment 1 Eclipse Genie CLA 2021-11-08 10:27:26 EST
New Gerrit change created: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.ide/+/187515