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 12719 - struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion `parent && parent == sc->parent' failed. #3544

Merged
merged 1 commit into from May 13, 2014

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented May 12, 2014

…tic(Scope*): Assertion `parent && parent == sc->parent' failed.
WalterBright added a commit that referenced this pull request May 13, 2014
Issue 12719 - struct.c:705: virtual void StructDeclaration::semantic(Scope*): Assertion `parent && parent == sc->parent' failed.
@WalterBright WalterBright merged commit d02621f into dlang:master May 13, 2014
@monarchdodra
Copy link
Contributor

I'm actually amazed this code compiles. I'd have expected some sort of circular definition issue? How does the compiler decide "what" is inside Wrapper, when it needs to know if canDoIt, which itself needs to know if Wrapper compiles...?

@9rnsr
Copy link
Contributor Author

9rnsr commented May 13, 2014

@monarchdodra canDoIt12719!R always returns false because is(typeof(W12719!R)) is not an expression.

@9rnsr 9rnsr deleted the fix12719 branch May 13, 2014 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants