https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65314

            Bug ID: 65314
           Summary: invalid type for array subscript
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: polina.borisova at kcl dot ac.uk

Hi, 

I dont seem to be able to fix this bug 

Relevant code: 
.
.
.
.
double on[N_k];
double a1[N], a2[N];

double x_0[N];
double y_0[N];

double x_1[N];
double y_1[N];
.
.
.
.
.

void Fourier(void)
{

    int n, j;

    for(j=0; j<N; j++)
    {

        inf[j][0]=(cos(2*Pi*((N-1)/2)*j/N)*x_0[j] -
sin(2*Pi*((N-1)/2)*j/N)*y_0[j]);
        inf[j][1]=(cos(2*Pi*((N-1)/2)*j/N)*y_0[j] +
sin(2*Pi*((N-1)/2)*j/N)*x_0[j]);        118    

    }

    fftw_execute(fftplanf);
    for(j=0; j<N; j++)
    {
        a1[j]=outf[j][0]/N;
        a2[j]=outf[j][1]/N;

    }

}

The error lies on the line 118 (as labled) and it states the following:

"118: error: invalid types ‘double __complex__[int]’ for array subscript"


I would appreciate immensely if someone could help me out on this one

Thank you

Reply via email to