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 13860 - template required forward reference for typeof(member) #4316

Merged
merged 1 commit into from Jan 20, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Jan 20, 2015

https://issues.dlang.org/show_bug.cgi?id=13860

In a struct member function S.foo, 'this' is declared as a ref variable by declareThis() in FuncDeclaration::semantic3().
But in VarDeclaration::semantic, type->hasPointer() will needlessly try to resolve struct fwdref.

All parameter variables won't be declared with void initializer, so the reordering fixes the issue.

@9rnsr 9rnsr force-pushed the fix13860 branch 3 times, most recently from 2cae5e0 to 3a5c42c Compare January 20, 2015 04:55
In a struct member function S.foo, 'this' is declared as a ref variable by `declareThis()` in `FuncDeclaration::semantic3()`.
But in `VarDeclaration::semantic`, `type->hasPointer()` will needlessly try to resolve struct fwdref.

All parameter variables won't be declared with void initializer, so the reordering fixes the issue.
@yebblies
Copy link
Member

Auto-merge toggled on

yebblies added a commit that referenced this pull request Jan 20, 2015
Issue 13860 - template required forward reference for typeof(member)
@yebblies yebblies merged commit 661f23d into dlang:master Jan 20, 2015
@9rnsr 9rnsr deleted the fix13860 branch January 21, 2015 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants