<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Wrong shader compilation error message"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96729">96729</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Wrong shader compilation error message
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>10.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>glsl-compiler
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>b7.10110111@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Consider the following vertex shader:
#version 120
vec4 toColor(float x)
{
ivec4 v=ivec4(0,0,0,0);
v.y+=128*x;
return v*1.;
}
void main()
{
gl_Position=gl_ModelViewProjectionMatrix*gl_Vertex;
vec4 c=toColor(0.);
gl_FrontColor=vec4(c.rgb,1);
}
It contains an error of implicit conversion of float to integer. But what I get
in Mesa's info log instead is:
0:6(2): error: non-lvalue in assignment
And this is despite v.y is an lvalue.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>