function called in initialization of a static/global variable
ID0001728: This issue was created automatically from Mantis Issue 1728. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0001728 | Frama-Clang | Plug-in > clang | public | 2014-04-01 | 2015-02-18 |
Reporter | fvedrine | Assigned To | virgile | Resolution | open |
Priority | normal | Severity | minor | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C GIT, precise the release id | Target Version | Frama-C GIT, precise the release id | Fixed in Version | - |
Description :
C++ authorizes the call of function to initialize static variables. In C this can only be done with attribute((constructor)). It requires modification in Cabs to accept it.
initialization.cpp:7:[kernel] warning: CALL in constant initialization.cpp:7:[kernel] user error: invalid global initializer tmp {/*() <- Calls: tmp = _ZN1AE1f(); */ tmp = _ZN1AE1f();}