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

[REG2.067a] Issue 13379 - Latest dmd fails with recursive template expansion in std.regex #3905

Merged
merged 1 commit into from
Aug 31, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Aug 27, 2014

while (tix && tix != inst)
tix = tix->tinst;
if (tix != inst) // Bugzilla 13379: Prevent circular chain
inst->tinst = tinst;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When an instance X [1] instantiates Y, then Y instantiates X [2], inst == X [1] and this == X [2].
The the old code had been breaking the assumption that inst does not appear in the chain of inst->tinst.

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 28, 2014

The regression is introduced in #3874, and the fix is now on 2.066 branch. So this is a blocker for the 2.066 point release. Please review.

@quickfur
Copy link
Member

Some of my projects are currently non-compilable on git head because of this issue. Please merge soon. :)

@9rnsr
Copy link
Contributor Author

9rnsr commented Aug 30, 2014

Please review and merge.

WalterBright added a commit that referenced this pull request Aug 31, 2014
[REG2.067a] Issue 13379 - Latest dmd fails with recursive template expansion in std.regex
@WalterBright WalterBright merged commit 178d02e into dlang:master Aug 31, 2014
9rnsr pushed a commit to 9rnsr/dmd that referenced this pull request Aug 31, 2014
[REG2.067a] Issue 13379 - Latest dmd fails with recursive template expansion in std.regex
@9rnsr 9rnsr deleted the fix13379 branch August 31, 2014 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression PRs that fix regressions
Projects
None yet
3 participants