| Summary: |
[GLSL] re-declaring an empty array fails to compile |
| Product: |
Mesa
|
Reporter: |
Gordon Jin <gordon.jin> |
| Component: |
Mesa core | Assignee: |
Ian Romanick <idr> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
Eric Anholt <eric> |
| Severity: |
normal
|
|
|
| Priority: |
medium
|
CC: |
brianp, idr
|
| Version: |
git | |
|
| Hardware: |
All | |
|
| OS: |
All | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
| Bug Depends on: |
25826
|
|
|
| Bug Blocks: |
29044
|
|
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
"float freq2[];" appears twice in piglit/tests/glslparsertest/shaders/CorrectFull.vert: -------------------------------- float freq2[]; while(test_float1 < 1.0); float freq2[]; -------------------------------- This causes fail: Failed to compile vertex shader piglit/tests/glslparsertest/shaders/CorrectFull.vert: Error: declaration of 'freq2' conflicts with previous declaration The GLSL spec says "Unsized arrays can be explicitly sized by an initializer at declaration time", but it doesn't say arrays can be declared as unsized twice.