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

Issue 15278 - Compile-time segfault when compiling code with alias this #5256

Closed
wants to merge 1 commit into from

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Nov 3, 2015

@9rnsr 9rnsr force-pushed the fix15278 branch 2 times, most recently from e188e87 to 06fe769 Compare November 3, 2015 05:59
@andralex
Copy link
Member

andralex commented Nov 3, 2015

The test should actually pass. We are looking here at converting a const List!int to a List!int.

@9rnsr
Copy link
Contributor Author

9rnsr commented Nov 3, 2015

alias this does not support qual1(T) to qual2(T) conversion. it should be done by qualified postblit.

@andralex
Copy link
Member

andralex commented Nov 3, 2015

@9rnsr thanks! Is that documented?

@9rnsr
Copy link
Contributor Author

9rnsr commented Nov 3, 2015

No.

@andralex
Copy link
Member

andralex commented Nov 3, 2015

@9rnsr thanks. (BTW how is http://wiki.dlang.org/DIP49 related?)

No documentation leaves us more room to do the right thing. Let's leave the bug open; qualified this(this) is very complicated (because of the two qualifiers involved) and in fact we're considering removing this(this) altogether.

There should be one means for subtyping a user-defined type, and that is alias this.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15278 Compile-time segfault when compiling code with alias this

@thewilsonator
Copy link
Contributor

rebased as #9002

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

Successfully merging this pull request may close these issues.

6 participants