<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - "float[a+++4 ? 1:1] f;" crashes glsl_compiler"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98699#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - "float[a+++4 ? 1:1] f;" crashes glsl_compiler"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98699">bug 98699</a>
from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
<pre>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. :)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>