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

Vector type mismatch causes unexpected error #1864

Open
ByteProduct opened this issue Jan 18, 2025 · 0 comments
Open

Vector type mismatch causes unexpected error #1864

ByteProduct opened this issue Jan 18, 2025 · 0 comments

Comments

@ByteProduct
Copy link

The compiler is not able to notify the error.

fn int main(String[] args) {
    const double[<4>] ONE = { 1.0, 1.0, 1.0, 1.0 };
    float[<4>] vec4 = ONE;
}

It produces the following output instead:

The compiler encountered an unexpected error: "Should be unreachable".

- Function: expr_const_will_overflow(...)
- Source file: D:\a\c3c\c3c\src\compiler\number.c:287

­Please consider taking the time to file an issue on GitHub, so that we can get it fixed
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

1 participant