Internal error #122.

Jimmy Timofte
Wed Sep 27 05:19:00 GMT 2000

I have compiled with g++ v2.96, on an i686 platform,
RedHat 6.2, the following program:

[jimmy@chopin c++]$ cat
/* */
#include <stdio.h>
#include <string>
class ClassX
    int _x;
    string _y;
    ClassX(int x, string y);
ClassX::ClassX(int x, string y)
    _x = x;
    _y = y;
    char s[28];
    if (x != 0)
int main() { return 0; };

and got the following messages:

[jimmy@chopin c++]$ g++ In method `ClassX::ClassX (int,
__default_alloc_template<true, 0> >)': parse error before `;' Internal error #122. Internal compiler error in
finish_function, at
Please submit a full bug report.
See <URL: >
for instructions.

The version of g++:
[jimmy@chopin c++]$ g++ --version

The program is indeed wrong, a ")" is missing, but i
guess this is still a bug.

Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.

More information about the Gcc-bugs mailing list