-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
localtime returns null (LDC 1.13.0-beta1 Win64) #2903
Comments
Thx, that's a bug in the MinGW-w64 .def file, defining |
9 tasks
kinke
added a commit
to kinke/installer
that referenced
this issue
Nov 8, 2018
Ignore the aliases in the MinGW-w64 .def files altogether; they are not just incomplete, but sometimes also wrong (e.g., ldc-developers/ldc#2903; there were more of these after I checked against msvcrt.lib). I decided to write a little tool to extract these aliases from the MS libs. The resulting output for VS 2015 oldnames.lib and msvcrt.lib is included (as well as the tool) as input files for the generated linker directives in oldnames.lib.
kinke
added a commit
to kinke/installer
that referenced
this issue
Nov 8, 2018
Ignore the aliases in the MinGW-w64 .def files altogether; they are not just incomplete, but sometimes also wrong (e.g., ldc-developers/ldc#2903; there were more of these after I checked against msvcrt.lib). I decided to write a little tool to extract these aliases from the MS libs. The resulting output for VS 2015 oldnames.lib and msvcrt.lib is included (as well as the tool) as input files for the generated linker directives in oldnames.lib.
FIxed in master now, along with a few other wrong aliases. |
wilzbach
pushed a commit
to kinke/installer
that referenced
this issue
Apr 14, 2019
Ignore the aliases in the MinGW-w64 .def files altogether; they are not just incomplete, but sometimes also wrong (e.g., ldc-developers/ldc#2903; there were more of these after I checked against msvcrt.lib). I decided to write a little tool to extract these aliases from the MS libs. The resulting output for VS 2015 oldnames.lib and msvcrt.lib is included (as well as the tool) as input files for the generated linker directives in oldnames.lib.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Windows 64-bit version of LDC 1.13.0-beta-1. Here is an example D program:
The C standard library's
localtime
function should return a pointer to a statically allocated non-threadsafe struct. With the returned pointer, we can then access the fields of the struct to get years, months, ...The assert passes when this example program gets built with on DMD 64-bit on Linux, DMD 32-bit on Windows, LDC 1.12 on Linux.
The assert fails when the example is built with LDC 64-bit 1.13.0-beta1. Expected: The assert passes here, too.
The text was updated successfully, but these errors were encountered: