<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:t_arceri@yahoo.com.au" title="Timothy Arceri <t_arceri@yahoo.com.au>"> <span class="fn">Timothy Arceri</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105740">bug 105740</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105740#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105740">bug 105740</a>
              from <span class="vcard"><a class="email" href="mailto:t_arceri@yahoo.com.au" title="Timothy Arceri <t_arceri@yahoo.com.au>"> <span class="fn">Timothy Arceri</span></a>
</span></b>
        <pre>Fixed by:

commit 1e0a06000bae17e1791f55127e7527946e9b6793
Author: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>>
Date:   Mon Mar 26 18:45:07 2018 -0400

    glsl_types: fix build break with intel/msvc compiler

    The VECN() macro was taking advantage of a GCC specific feature that is
    not available on lesser compilers, mostly for the purposes of avoiding a
    macro that encoded a return statement.

    But as suggested by Ian, we could just have the macro produce the entire
    method body and avoid the need for this.  So let's do that instead.

    Bugzilla: <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression"
   href="show_bug.cgi?id=105740">https://bugs.freedesktop.org/show_bug.cgi?id=105740</a>
    Fixes: f407edf3407396379e16b0be74b8d3b85d2ad7f0
    Cc: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>>
    Cc: Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com">tarceri@itsqueeze.com</a>>
    Cc: Roland Scheidegger <<a href="mailto:sroland@vmware.com">sroland@vmware.com</a>>
    Cc: Ian Romanick <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>>
    Signed-off-by: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>>
    Acked-by: Timothy Arceri <<a href="mailto:tarceri@itsqueeze.com">tarceri@itsqueeze.com</a>>
    Reviewed-by: Roland Scheidegger <<a href="mailto:sroland@vmware.com">sroland@vmware.com</a>>
    Reviewed-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a>></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>