glsl: Only allow unsized array assignment in an initializer
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Mar 2011 23:33:27 +0000 (16:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Mar 2011 23:41:23 +0000 (16:41 -0700)
commit85caea29c18fad89050ac366c558afef568dcb3f
tree096ce997989205b2bdd37f2749b5c206fefd9450
parentd04348aaf69549c14b68e77d4003e4e3499e7cce
glsl: Only allow unsized array assignment in an initializer

It should have been a tip when the spec says "However, implicitly
sized arrays cannot be assigned to. Note, this is a rare case that
*initializers and assignments appear to have different semantics*."
(empahsis mine)

Fixes bugzilla #34367.

NOTE: This is a candidate for stable release branches.
src/glsl/ast_to_hir.cpp