[osol-code] Re: [ksh93-integration-discuss] Trouble with"ERROR:ctfconvert:pics/wordexp.o: Couldn't parse stab "#vla0:(0, 14)"(source file pics/wordexp.o)" ...

Casper.Dik at Sun.COM Casper.Dik at Sun.COM
Thu Nov 16 02:08:00 PST 2006



>Could you proove that?


Probably not, because C++ doesn't allow variable size arrays.

Certainly, Sun's C++ compiler balks at:

int
main(int argc, char ** argv)
{
        char *acp[argc];
}


with:

"foo.C", line 4: Error: An integer constant expression is required within the array subscript operator.
1 Error(s) detected.

gcc accepts this but then, it has seized to be a compiler of some language.

But it can be made to complain:

gcc -ansi -pedantic foo.C
foo.C: In function `int main(int, char**)':
foo.C:4: error: ISO C++ forbids variable-size array `acp'

Casper




More information about the ksh93-integration-discuss mailing list