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

Issue3268 - can't compare pointer to functions when one is const #89

Closed
wants to merge 2 commits into from

Conversation

yebblies
Copy link
Member

@yebblies yebblies commented Jun 7, 2011

Currently EqualExp::semantic calls arrayTypeCompatible, which incorrectly assumes that the function pointer can be converted to an array.

yebblies added 2 commits June 7, 2011 13:21
arrayTypeCompatible incorrectly assumes that all pointers are arrays,
which is not true for function pointers.
@yebblies
Copy link
Member Author

yebblies commented Jun 7, 2011

I'm going to close this in favor of a more general solution, that allows Tfunction to stop being special cased.

@yebblies yebblies closed this Jun 7, 2011
braddr pushed a commit to braddr/dmd that referenced this pull request Sep 15, 2011
Made most of the overloads for enforce @safe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant