Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialisation of wchar_t arrays #71

Closed
ghost opened this issue Nov 11, 2015 · 2 comments
Closed

Initialisation of wchar_t arrays #71

ghost opened this issue Nov 11, 2015 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Nov 11, 2015

With CompCert 2.5, I've found that

wchar_t const abc[] = L"abc";

is somehow treated as

wchar_t const abc[] = { L'\0', L'a', L'b', L'c', L'\0' };

Meanwhile, wchar_t const *abc = L"abc" works as expected. I'm aware that wide character support is still a work in progress (#26), but this specific problem looks like it might point to some deeper issues.

@xavierleroy
Copy link
Contributor

Even if wide char support in CompCert is rudimentary, this is clearly an implementation bug! I'll fix this ASAP. Thanks for reporting it.

xavierleroy added a commit that referenced this issue Nov 13, 2015
…g literal

Regression test added in regression/initializers.c
@xavierleroy
Copy link
Contributor

Fixed in commit [master 9f0fcc2].

xavierleroy added a commit that referenced this issue Apr 25, 2018
We were previously at 2.5.2.  Quoting the NEWS from upstream:

Version 2.6.1:
 - ensured compatibility from Coq 8.4 to 8.8

Version 2.6.0:
 - ensured compatibility from Coq 8.4 to 8.7
 - removed some hypotheses on some lemmas of Fcore_ulp
 - added lemmas to Fprop_plus_error
 - improved examples

Also: in preparation for Coq 8.8, silence warning "compatibility-notation"
when building Flocq, because this warning is on by default in 8.8,
and Flocq triggers it a lot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant