<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 - define (or undef) defined behaves stupidly"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94188">94188</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>define (or undef) defined behaves stupidly
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </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>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A shader like

    #define defined gl_Position
    void main()
    {
        defined = vec4(1.0);
    }

should either file to compile at line 1 or it should "just work."  Instead,
Mesa produces a fairly obtuse error message:

    0:5(2): error: `defined' undeclared
    0:5(2): error: value of type vec4 cannot be assigned to variable of type
error

Apparently some dEQP test expects '#define defined' and '#undef defined' to
just work, but glslang generates an error.  See also
<a href="https://github.com/KhronosGroup/glslang/issues/59">https://github.com/KhronosGroup/glslang/issues/59</a>.  Either way, Mesa's behavior
is wrong.</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>