[Mesa-dev] [Bug 98699] "float[a+++4 ? 1:1] f; " crashes glsl_compiler

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 15 19:31:39 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98699

--- Comment #2 from Ian Romanick <idr at freedesktop.org> ---
I don't even want to know how you came across that. :)  Just looking at the
backtrace, it seems the problem is the "a++" generates an assignment.  The code
that handles array sizes doesn't anticipate any why for there to be anything
other than an expression tree without side-effects, so it fails the assertion. 
The grammar doesn't allow anything else inside [] that would generate an
assignment, and I apparently didn't think about post-increment and friends.

Other things like function calls with out or inout parameters might also hit
this.  It would be good to have a set of piglit tests to exercise this.  If you
can write the tests, I should be able to fix Mesa. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161115/2d319caa/attachment.html>


More information about the mesa-dev mailing list