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

Fix segfault regressions 5936 and 6351 #330

Merged
merged 3 commits into from
Aug 24, 2011

Conversation

donc
Copy link
Collaborator

@donc donc commented Aug 24, 2011

These bugs are very closely related. Both are segfaults related to pure/@safe inference; they're both caused by code in functionParameters() that incorrectly assumes parameters are non-null.

http://d.puremagic.com/issues/show_bug.cgi?id=5936
Regression(2.050): Segfault when forward-referencing pure auto-return member function with parameter.

http://d.puremagic.com/issues/show_bug.cgi?id=6351
Regression(2.054) Segfault: Vararg delegate as template param

which is a dup of 6341: Regression(2.054): Segfault with variadic delegate parameter

Don Clugston added 3 commits August 24, 2011 16:32
…eturn member function with parameter.

In functionParameters(), the return type should be inferred _before_ analysing
the parameters, not afterwards.
The function declaration may not be available (eg, if it's a call to
a variable). In such a case, we can fall back to using the function type
instead.
Both are segfaults caused by pure/@safe inference.
WalterBright added a commit that referenced this pull request Aug 24, 2011
Fix segfault regressions 5936 and 6351
@WalterBright WalterBright merged commit b9ee455 into dlang:master Aug 24, 2011
braddr pushed a commit to braddr/dmd that referenced this pull request Oct 22, 2012
Issue 6973 - static assert(isOutputRange!(OutputRange!int, int)) is false
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.

2 participants