Uncaught exception in jc/jc_effect.ml caused by union type
ID0000500: This issue was created automatically from Mantis Issue 500. Further discussion may take place here.
Id | Project | Category | View | Due Date | Updated |
---|---|---|---|---|---|
ID0000500 | Frama-C | Plug-in > jessie | public | 2010-06-07 | 2010-12-18 |
Reporter | Jochen | Assigned To | cmarche | Resolution | fixed |
Priority | normal | Severity | text | Reproducibility | always |
Platform | - | OS | - | OS Version | - |
Product Version | Frama-C Boron-20100401 | Target Version | - | Fixed in Version | Frama-C Carbon-20101202-beta2 |
Description :
The attached program tries to do a dirty conversion from char* to int (just to test the limits of Jessie). If this is done by a cast, Jessie properly reports <>. If this is done by a union type, however, Jessie reports <<Uncaught exception: File "jc/jc_effect.ml", line 1356, characters 22-28: Assertion failed>>. Probably that exception should be caught and <<...cannot be used on your code>> should be reported in this case, too. See the attached program; comment-out and uncomment the line "#define testUnion" to reproduce both behaviours.