The following testcase: ---- void main() { wchar c; } ---- Causes dmd to output invalid debug information.
It would seem that dmd does not support writing debug info for wchar yet, as the case for dealing with wchar is wrapped in #if 0, and has some information on what the correct debug information should be.
Created attachment 595 [details] Patch to add support for debugging info for wchar I'm not sure if the file/line number that are written to the file matter, I don't think they do so I set them both to 1. This might need the patch for #3987 applied, might not.
Comment on attachment 595 [details] Patch to add support for debugging info for wchar This patch has been included with the new patch in bug #3987.
Fixed DMD2.044 and DMD1.059.