Skip to content

Frama-clang complains when reserved keywords are used as property labels, while Frama-C doesn't

ID0002359: This issue was created automatically from Mantis Issue 2359. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002359 Frama-C Plug-in > clang public 2018-02-12 2018-02-12
Reporter Jochen Assigned To virgile Resolution open
Priority normal Severity feature Reproducibility always
Platform Sulfur-20171101 OS - OS Version Ubuntu 17.10
Product Version Frama-C 16-Sulfur Target Version - Fixed in Version -

Description :

Running "frama-c -wp st.cpp" on the attached program produces a (stderr) message "st.cpp:2:14: keyword 'keyword -> invariant' encountered when parsing term or predicate". When 'invariant' is changed e.g. to 'assert', a similar message is printed.

When the file is renamed to "st.c", the message disappears. Likewise, our use of a reserved keyword as procedure or parameter name didn't cause such a message.

Attachments

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information