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 19788 - compiler crash on slicing a enum typed as vector #12043

Merged
merged 1 commit into from Dec 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/runnable/testxmm.d
Expand Up @@ -2152,6 +2152,15 @@ void test21364()
foo21364(1, x, 2, 3, 4, 5, 6, 7, 8, 9, 10);
}

/*****************************************/
// https://issues.dlang.org/show_bug.cgi?id=19788

void test19788()
{
enum v = __vector(float[4]).init;
const(float)[] a = v[];
}

/*****************************************/

int main()
Expand Down Expand Up @@ -2199,6 +2208,7 @@ int main()
test7();
test20981();
test21364();
test19788();

return 0;
}
Expand Down