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

Using an enum as an enum struct array member size causes compiler to crash #2145

Closed
Bradasparky opened this issue May 1, 2024 · 1 comment

Comments

@Bradasparky
Copy link

Version: Sourcemod Dev 7125

The compiler crashes no matter what the value of A is in this test case

enum 
{ 
    A = 2, 
}

enum struct B 
{ 
    int i[A]; 
}
@Bradasparky Bradasparky changed the title Using an enum as an enum struct array size causes compiler to crash Using an enum as an enum struct array member size causes compiler to crash May 1, 2024
@Fyren
Copy link
Contributor

Fyren commented Jun 5, 2024

Should be fixed by the above PR.

@Fyren Fyren closed this as completed Jun 5, 2024
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

No branches or pull requests

2 participants