egcs 1.1 bug (with test case)

Gilles Depeyrot Gilles.Depeyrot@wanadoo.fr
Mon Sep 7 04:38:00 GMT 1998


Hi everyone,

I have decided to switch over to egcs and I have a problem with egcs 1.1.
This problem didn't exist in gcc 2.8.1.

The following program:

-- main.cc --

extern short int x[2];

int main()
{
     char v[x[0]-4];

     short workaround_compiler_limitation = x[0]-4;
     char v2[workaround_compiler_limitation];
}

-- end of main.cc --

gives the following compilation error:

main.cc:5: sorry, not implemented: testing array_ref for template parms
main.cc: In function 'int main()':
main.cc:5: confused by earlier errors, bailing out

Keep up the good work,
Gilles


Gilles Depeyrot                    < mailto:Gilles.Depeyrot@wanadoo.fr >
                             < http://perso.wanadoo.fr/gilles.depeyrot >




More information about the Gcc-bugs mailing list