Skip to content

error with -pp-annot : eof while parsing C comment

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


Id Project Category View Due Date Updated
ID0001226 Frama-C Kernel public 2012-07-02 2014-02-12
Reporter Anne Assigned To virgile Resolution fixed
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C Nitrogen-20111001 Target Version - Fixed in Version Frama-C Oxygen-20120901

Description :

With the following example: void test (void) { char * str = "/*"; } The command: $ frama-c toto.c -pp-annot gives: [kernel] preprocessing with "gcc -C -E -I. -dD toto.c" "toto.c":3:[kernel] user error: Can't preprocess annotation: eof while parsing C comment Annotation will be kept as is

I guess that the string "/*" is considered by frama-c as the beginning of a comment...

Additional Information :

With { char * str = "//@"; } it gives more errors...

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