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 issue 17111 - More robust detection of variables used as case exp. #6477

Merged
merged 2 commits into from Feb 11, 2017
Merged

Fix issue 17111 - More robust detection of variables used as case exp. #6477

merged 2 commits into from Feb 11, 2017

Conversation

LemonBoy
Copy link
Contributor

No description provided.

@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
17111 DMD accepts switch statement with non-const case variables

Copy link
Member

@UplinkCoder UplinkCoder left a comment

Choose a reason for hiding this comment

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

Looks good!
@WalterBright please merge

void main()
{
TestType a,b,c;
readf("%s %s %s ", &a, &b, &c);
Copy link
Member

Choose a reason for hiding this comment

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

This test case can be rewritten to not use phobos. This is desirable to speed the compilation of the test suite, and to focus the test case onto just what the problem is, rather than bringing in heaps of irrelevant complication from phobos.

@MartinNowak
Copy link
Member

Auto-merge toggled on

@MartinNowak MartinNowak merged commit e15fb01 into dlang:master Feb 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants