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

"float a[];float b = float(a)" fails an assertion in Types.h through glslangValidator #26

Closed
xorgy opened this issue Jul 21, 2015 · 2 comments

Comments

@xorgy
Copy link
Contributor

xorgy commented Jul 21, 2015

The input float a[];float b = float(a) (casting from an array with no explicit size) causes glslangValidator to fail an assertion (isExplicitlySizedArray()) and abort through libc instead of printing an error.

@xorgy xorgy changed the title "float gu[];void o(){return float(gu)" fails an assertion in Types.h through glslangValidator "float a[];float b = float(a)" fails an assertion in Types.h through glslangValidator Jul 21, 2015
@xorgy
Copy link
Contributor Author

xorgy commented Jul 21, 2015

int i=int[]() is a simpler way to hit this.

@johnkslang
Copy link
Member

Commit efb8461 fixes this.

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