0 Replies Latest reply on Oct 15, 2009 10:45 AM by mjharvey

    beta4 problem: internal compiler error with scalar __local automatic variables

    mjharvey
      beta4 problem

      Compiling the  following kernel:

      __kernel void test( int dummy ) {
          __local int i;
      }

       

      gives the error:

      internal error: array_element_type: non-array type
       __local int i;

       

      A work-around is to change "int i" to "int i[1]" and subsequent uses of i to i[0].