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

0.16.0-alpha4: Infinite recursion inside initializer #1101

Closed
redstar opened this Issue Sep 20, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@redstar
Member

redstar commented Sep 20, 2015

The following code

struct Foo {

    Foo[] bar = [];

    this(const int x) { }
} 

leads to an infinite recursion, resulting in a segmentation fault. DtoConstArrayInitializer() is called again and again.

@klickverbot

This comment has been minimized.

Show comment
Hide comment
@klickverbot

klickverbot Sep 20, 2015

Member

Are you working on this?

Member

klickverbot commented Sep 20, 2015

Are you working on this?

@redstar

This comment has been minimized.

Show comment
Hide comment
@redstar

redstar Sep 20, 2015

Member

I currently try to produce a reduced test case for #1022.

Member

redstar commented Sep 20, 2015

I currently try to produce a reduced test case for #1022.

@klickverbot

This comment has been minimized.

Show comment
Hide comment
@klickverbot

klickverbot Sep 20, 2015

Member

I'll have a brief look at it later then.

Member

klickverbot commented Sep 20, 2015

I'll have a brief look at it later then.

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