Bug 577503 - The Empty arrays generated for CFBs are not accepted by Visual Studio C++ compiler
Summary: The Empty arrays generated for CFBs are not accepted by Visual Studio C++ com...
Status: CLOSED FIXED
Alias: None
Product: 4DIAC
Classification: IoT
Component: 4DIAC-IDE (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-28 10:05 EST by Alois Zoitl CLA
Modified: 2021-12-28 09:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alois Zoitl CLA 2021-11-28 10:05:50 EST
If there are certain elements not available in a CFB (e.g., parameters of internal FBs) our exporter generates arrays with empty initialization:

 const SCFB_FBParameter FORTE_AIT::scm_astParamters[] = {
 };

While Gcc is happy with this code the Visual Studio compiler reports Error C2466. As in this case the static value initialization is not needed at all it should be fine that we just do not export these lines to the CPP.

For more details see: https://www.eclipse.org/forums/index.php/t/1109531/
Comment 1 Eclipse Genie CLA 2021-11-28 10:08:36 EST
New Gerrit change created: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.ide/+/188225