Internal Compiler error on a few lines code.

Hello,

I have a following problem. I am trying to compile this:

#define NLETTERS 26

void test_function(int size)
{
        int table[NLETTERS][size];

        table[NLETTERS-1][size-1]=0;
}

I use the following command to compile:

pgcc -O3 -c test.c -o test.o

and the following compiler:

pgcc 6.2-4 64-bit target on x86-64 Linux

and I get the following message from the compiler:

PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. chk_du_confl:invalid msize, ili:      27 (test.c: 8)
PGC-S-0000-Internal compiler error. msz_dtype_match:unk msize      -1 (test.c: 8)
pgcc-Fatal-/opt/pgi/linux86-64/6.2/bin/pgc TERMINATED by signal 11
Arguments to /opt/pgi/linux86-64/6.2/bin/pgc
/opt/pgi/linux86-64/6.2/bin/pgc test.c -opt 3 -terse 1 -inform warn -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 16 -x 19 0x400000 -x 28 0x40000 -quad -x 120 0x80000000 -x 59 4 -x 59 4 -y 80 0x1000 -x 80 0x10800000 -astype 0 -stdinc /opt/pgi/linux86-64/6.2/include:/usr/local/include:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/include:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6//include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __x86_64__ -def __LONG_MAX__=9223372036854775807L -def '__SIZE_TYPE__=unsigned long int' -def '__PTRDIFF_TYPE__=long int' -def __THROW= -def __extension__= -def __amd64__ -def __SSE__ -def __MMX__ -def __SSE2__ -predicate '#machine(x86_64) #lint(off) #system(posix) #cpu(x86_64)' -cmdline '+pgcc test.c -O3 -c -o test.o' -outfile test.o -x 123 4 -x 123 0x80000000 -alwaysinline /opt/pgi/linux86-64/6.2/lib/libintrinsics.il 4 -asm /tmp/pgcck6JEC6bBRgn.s

Can you help me with it.

Maciek

Hi Maciek,

Thank you for the report. This problem was corrected in the 6.2-5 version of the compilers. You can find this new version on the PGI downloads page.

Sorry for the inconvenience,
Mat

Hi Mat,

thank you for your quick answer

Maciek