inchoherence of types between enumitems and enum type with multi-files
ID0000525: This issue was created automatically from Mantis Issue 525. Further discussion may take place here.
|Fixed in Version
When a same type definition of enum is used in several files, but in different order, the type of the enumitem is desynchronised with the enum type.
Additional Information :
In the following case (see archive files), the output of the demonstrator plugin indicates that :
exp p1 of type enum __anonenum_T_EN1_1 exp E1 of type enum __anonenum_T_EN1_2
So, this prevent us of comparing both types to check their compatibility. The enumitem is always in the form of _anonenum. The var is of Tname type refering to an other anonenum type.
If we reorder the type declarations in source1, the problem will disappear. There is no problem with just one file at a time.
- build the plugin (make all install)
- run "frama-c -test1 source1.c source2.c"
[virgile-20100701] note: the test1.ml in the archive will not compile against current svn. Use the one provided separately instead