Actions
Bug #9653
closedFrama-C (CIL) incorrectly outputs wide character literals
Start date:
05/16/2019
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
For instance, for such the examples:
typedef short unsigned int wchar_t;
wchar_t *abc, *empty;
abc = L"ABC";
empty = L"";
it outputs something like
typedef short unsigned int wchar_t;
wchar_t *abc, *empty;
abc = L"A" "B" "C";
empty = L;
(if the former is acceptable, the latter is an obvious bug).
I did not investigate if the issue exists with different options, but at least it exists for "-machdep gcc_x86_64 -c11 -short-wchar" (other options are not likely relevant).
Updated by Evgeny Novikov almost 5 years ago
- Priority changed from Urgent to High
The issue is not so crucial although it is not pleasant.
Updated by Mikhail Mandrykin almost 5 years ago
- Status changed from New to Resolved
Fixed in 016f6757. The bug is still present in upstream Frama-C v19 beta (Cil_printer@L538).
Updated by Evgeny Novikov almost 5 years ago
Mikhail Mandrykin wrote:
Fixed in 016f6757. The bug is still present in upstream Frama-C v19 beta (Cil_printer@L538).
Thank you for the fix, I will test it soon.
Regarding the upstream, please, suggest the bug fix there.
Updated by Evgeny Novikov almost 5 years ago
- Status changed from Resolved to Closed
Sorry for delay. I tested the fix. Now everything seems to work.
Actions