[Mesa-dev] [Bug 109810] nir_opt_copy_prop_vars.c:454: error: unknown field ‘ssa’ specified in initializer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 2 07:36:40 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=109810

--- Comment #1 from Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com> ---
I suspect this is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676. In our
struct we have a nested union that's unnamed. The tested GCC misses that
somehow.

struct value {
   bool is_ssa;
   union {
      struct {
         nir_ssa_def *def[NIR_MAX_VEC_COMPONENTS];
         uint8_t component[NIR_MAX_VEC_COMPONENTS];
      } ssa;
      nir_deref_instr *deref;
   };
};

The bug comments there suggests (1) adding extra set of braces around the .ssa
in the initializer. Other possible ways to fix are: (2) naming the union, or
(3) creating the temporary and then assigning to '*value' in the code. If we
have to do this, I think the more natural solution would be (3).

I don't have GCC 4.4 handy to test those three options though.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190302/c17b28a3/attachment.html>


More information about the mesa-dev mailing list