<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - compute.c:464:49: error: function definition is not allowed here"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=75165">75165</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compute.c:464:49: error: function definition is not allowed here
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>blocker
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vlee@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr></table>
      <p>
        <div>
        <pre>mesa: 20d14ef2633215c5d24741de76b5d59aa3dcbc22 (master)

Build error with clang when enabling gallium tests.

  CC       compute.o
compute.c:464:49: error: function definition is not allowed here
        void init(void *p, int s, int x, int y) {
                                                ^
compute.c:496:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 0, expect, NULL);
                          ^
compute.c:522:50: error: function definition is not allowed here
        void init0(void *p, int s, int x, int y) {
                                                 ^
compute.c:538:26: error: use of undeclared identifier 'init1'; did you mean
      'init0'?
                 60, 12, init1);
                         ^~~~~
                         init0
compute.c:522:14: note: 'init0' declared here
        void init0(void *p, int s, int x, int y) {
             ^
compute.c:541:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 1, expect, NULL);
                          ^
compute.c:588:49: error: function definition is not allowed here
        void init(void *p, int s, int x, int y) {
                                                ^
compute.c:602:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 0, expect, NULL);
                          ^
compute.c:624:49: error: function definition is not allowed here
        void init(void *p, int s, int x, int y) {
                                                ^
compute.c:641:39: error: use of undeclared identifier 'input'
                     (uint32_t *[]){ &input[1], &input[3],
                                      ^
compute.c:641:50: error: use of undeclared identifier 'input'
                     (uint32_t *[]){ &input[1], &input[3],
                                                 ^
compute.c:642:39: error: use of undeclared identifier 'input'
                                     &input[5], &input[7] });
                                      ^
compute.c:642:50: error: use of undeclared identifier 'input'
                                     &input[5], &input[7] });
                                                 ^
compute.c:643:69: error: use of undeclared identifier 'input'
        launch_grid(ctx, (uint []){4, 1, 1}, (uint []){1, 1, 1}, 0, input);
                                                                    ^
compute.c:644:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 0, expect, NULL);
                          ^
compute.c:645:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 1, expect, NULL);
                          ^
compute.c:646:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 2, expect, NULL);
                          ^
compute.c:647:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 3, expect, NULL);
                          ^
compute.c:694:49: error: function definition is not allowed here
        void init(void *p, int s, int x, int y) {
                                                ^
compute.c:708:27: error: use of undeclared identifier 'expect'
        check_tex(ctx, 0, expect, NULL);
                          ^</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>