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

--- Comment #1 from Caio Marcelo de Oliveira Filho <caio.olive...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to