GLSL spec (1.10 to 1.50) 4.1.9 says:
It is legal to declare an array without a size and then later re-declare the same name as an array of the same type and specify a size.
But below code fails to compile:
This impacts piglit/tests/glslparsertest/shaders/CorrectUnsizedArray.frag: Error: declaration of 'gl_TexCoord' conflicts with previous declaration
This bug is probably related to bug#25664. I'm cautiously using depend/block relationship, but they may be fixed together.
Fixed with glsl2 merge.
verified with mesa master d442a01ac14382d83cdaac87d2832315ceb3e963
on Oct 20, 2016 at 19:36:46.
(provided by the Example extension).