-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Crash: "Error: size of type <T> is not known" #893
Comments
|
Confirmed. Does happen with merge-2.067, too. |
|
@extrawurst Could you create a minimum test case? |
|
currently bad timing wise.. but this lib is rather small and not complex and the failing part is in a version(LDC) block |
|
Unfortunately, I don't have time to investigate this myself right now, but just as a hint, in these sorts of errors forward reference issues are often involved. |
|
I've tried to create a test case (using the versioned out code, etc.), but it worked for me, so... Would help getting it solved :) |
|
@JohanEngelen I just confirmed it is still crashing: |
|
@extrawurst I meant I couldn't reproduce with a smaller testcase. |
|
Hmm, I've found something that looks wrong. If I have LDC output some debug info (removing the specific LDC versioned fix), I get this: the reach of |
fixes the compile... |
|
The compiler crash happens because our gives |
|
Minimum test case: |
|
@extrawurst I've asked on #d, and people told me that |
|
Now, on to fixing LDC's stripmodifier... |
|
The problem is a bug in DMD, but it is hard to track down where exactly things go out-of-sync. The problem is that for a type like |
|
I don't know how to fix it. DMD is too opaque for me regarding this type business / cached types for different modifiers, etc. edit: was already fixed (accidentally it seems) in DMD HEAD |
|
Thanks!!! |
This happens in ldc 0.15.1
This happens even though the same code builds fine in previous ldc and the last three dmd's
In this case:
Error: size of type ImGuiCol is not knownwhere ImGuiCol is simply an
alias int ImGuiCol.Repository to reproduce:
https://github.com/Extrawurst/DerelictImgui
failing travis build:
https://travis-ci.org/Extrawurst/DerelictImgui/jobs/57739655
The text was updated successfully, but these errors were encountered: