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

[REG2.067a] Issue 14218 - casting null to integer type causes error message #4446

Merged
merged 1 commit into from Feb 26, 2015

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Feb 25, 2015

//foreach (To; Seq!(cfloat, cdouble, creal))
//{
// static assert(!__traits(compiles, { auto x = cast(To)null; }));
//}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The casts to any complex types from null reports ICE with 2.066.1 and earlier.
I'm not sure it's valid or invalid in D, so I keep the ICE behavior.

@rainers
Copy link
Member

rainers commented Feb 26, 2015

LGTM

@rainers
Copy link
Member

rainers commented Feb 26, 2015

Auto-merge toggled on

braddr added a commit that referenced this pull request Feb 26, 2015
[REG2.067a] Issue 14218 - casting null to integer type causes error message
@braddr braddr merged commit 406d9dc into dlang:master Feb 26, 2015
@9rnsr 9rnsr deleted the fix14218 branch February 26, 2015 15:20
@9rnsr 9rnsr added this to the 2.067 milestone Mar 1, 2015
braddr added a commit that referenced this pull request Mar 1, 2015
[REG2.067a] Issue 14218 - casting null to integer type causes error message
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