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

LDC 1.5.0 crash on imports #2413

Closed
Temtaime opened this issue Nov 17, 2017 · 7 comments
Closed

LDC 1.5.0 crash on imports #2413

Temtaime opened this issue Nov 17, 2017 · 7 comments

Comments

@Temtaime
Copy link
Contributor

perfontain.zip

ldc2 perfontain/nodes/sprite.d
Wrote crash dump file ...

@dnadlinger
Copy link
Member

dnadlinger commented Nov 17, 2017

Doesn't reproduce in master on OS X (should obviously still be fixed in 1.5.0 if easy enough). Scratch that, testing failure on my part.

@kinke
Copy link
Member

kinke commented Nov 18, 2017

This is apparently another front-end issue; DMD 2.076.1 and 2.077 crash as well. LDC's merge-2.077 segfaults in DsymbolSemanticVisitor::visit(class Import *) C:\LDC\ldc\ddmd\dsymbolsem.d:2737:21. Please file an upstream bugzilla issue.

@Temtaime
Copy link
Contributor Author

I am able to build this with dmd 2.076 and 2.077 on windows.

@kinke
Copy link
Member

kinke commented Nov 18, 2017

I've tested it on Windows as well; I've used an import path though:

dmd -c c:\temp\perfontain\nodes\sprite.d -IC:\temp
object.Error@(0): Access Violation

Edit: But DMD 2.077 is also crashing with dmd perfontain\nodes\sprite.d in c:\temp here on my box.

@Temtaime
Copy link
Contributor Author

Add proper module definitions i.e.
module perfontain.misc;
module perfontain.misc.rc;
module perfontain.nodes.sprite;

to the files and it doesn't crash, and ldc keeps crashing

@kinke
Copy link
Member

kinke commented Nov 18, 2017

Add proper module definitions [...] to the files and it doesn't crash, and ldc keeps crashing

LDC 1.6.0-beta1 doesn't. So I guess this particular bug was fixed in the 2.076 front-end, while there's still a bug if there are no module declarations.

@Temtaime
Copy link
Contributor Author

Okee, closing this bug then.
Seems there's one more bug in ldc for my project.
I'll dustmite again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants