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
fix Issue 22253 - ImportC expressions inadvertently supporting D properties #13066
Conversation
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "stable + dmd#13066" |
55493dd
to
44ca0ed
Compare
@@ -9,7 +9,7 @@ struct S *abc = &(struct S){ 1, 2 }; | |||
int test() | |||
{ | |||
struct S *var = &(struct S){ 1, 2 }; | |||
return var.b; | |||
return var->b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-_-
Could you please create a bugzilla entry and link it to this PR? |
What's up with this PR title? |
44ca0ed
to
0733ba8
Compare
@ibuclaw @WalterBright looks like this may have caused this https://issues.dlang.org/show_bug.cgi?id=22322 |
The idea here is to prevent the compiler from looking up properties for C structs. Unfortunately, the property code lookup is a byzantine mess. So, what this fix does is short-circuit the mess and do its own lookup in importc.d.
A future PR could add spell checking to it.