2021-01-15 17:55 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001800Frama-CKernelpublic2014-06-06 00:15
Assigned Tovirgile 
PlatformOSUbuntuOS Version
Product VersionFrama-C Neon-20140301 
Target VersionFixed in Version 
Summary0001800: Cannot use quotes in comments in annotations
DescriptionWhen using the //@ annotations, a comment at the end that has an unmatched ' or " causes the kernel to report an error.
Steps To Reproducecreate file comment_parse.c:
void f(){
    //@assert \true;// Validates in 0'0"

frama-c -cpp-command 'gcc -C -E' -pp-annot comment_parse.c

Receive output:
[kernel] preprocessing with "gcc -C -E -dD comment_parse.c"
"comment_parse.c":5:[kernel] user error: Can't preprocess annotation: eof while parsing a char literal
                     Annotation will be kept as is
comment_parse.c:3:[kernel] user error: syntax error
[kernel] user error: skipping file "comment_parse.c" that has errors.
[kernel] Frama-C aborted: invalid user input.

Removing the ' and " characters will cause no error to occur.
TagsNo tags attached.
Attached Files


There are no notes attached to this issue.

-Issue History
Date Modified Username Field Change
2014-06-05 17:02 Ian New Issue
2014-06-06 00:15 signoles Assigned To => virgile
2014-06-06 00:15 signoles Status new => assigned
+Issue History