cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

BarsMonster
Journeyman III

Strange error: Problem with gather array access. Expect a gather array in place of expr

I am trying to use local array, what I am doing wrong?

It brcc says "Problem with gather array access. Expect a gather array in place of expr" :-S I've tried integer index - same result :-S

 

    int data[4];
    int a,b,c,d,i;
    int ta,tb,tc,td;
    int s1,s2;
    result = 0;

    data = input;

    ta = target[0];
    tb = target[1];
    tc = target[2];
    td = target[3];
tc -= (ta ^ (td | ~tb)) + data[2.500000] + (uint ) (718787259)//Error in this line, on the data[2.500000]

0 Likes
1 Reply
nberger
Adept I

Hi!
You cannot have local arrays in kernels. This is one of the limitations of Brook.
0 Likes