<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 - Assertion `!"invalid type"' failed when constant expression involves literal of different type"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=101766">101766</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `!"invalid type"' failed when constant expression involves literal of different type
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>david@drmaciver.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=132634" name="attach_132634" title="Shader required to reproduce assertion">attachment 132634</a> <a href="attachment.cgi?id=132634&action=edit" title="Shader required to reproduce assertion">[details]</a></span>
Shader required to reproduce assertion

When the attached file is compiled with glsl_compiler, it triggers the
following assertion:

glsl_compiler: glsl/ir_expression_operation_constant.h:228: virtual
ir_constant* ir_expression::constant_expression_value(hash_table*): Assertion
`!"invalid type"' failed.
Aborted (core dumped)

The command I used to produce this was:

glsl_compiler invalid_type.frag.frag --version=300

I tested this with a version of Mesa that I built on git version
f7e78abdf45b26f3991dc336120162ae01b208f1 on Ubuntu 14.04, using LLVM 4.0.0, but
I originally encountered it on a different version (also on Ubuntu) using the
opengl API directly rather than glsl_compiler, so I expect the problem is not
specific to my build.</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>