Bug 577131 - Multiple FOR loopc cannot be exported due to name reuse of the variables BY and TO
Summary: Multiple FOR loopc cannot be exported due to name reuse of the variables BY a...
Status: CLOSED FIXED
Alias: None
Product: 4DIAC
Classification: IoT
Component: 4DIAC-IDE (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 critical
Target Milestone: 2.0.1   Edit
Assignee: Martin Melik-Merkumians CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-08 08:21 EST by Martin Melik-Merkumians CLA
Modified: 2021-11-25 02:28 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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