www.digitalmars.com         C & C++   DMDScript  

D - Possible bug: "internal error" compiler message

reply "Les Baker" <lesbaker innovaREMOVETHIS.net> writes:
Walter,

on the following code:

int main(char[][] args)
{
    char[1] buf;
    buf[] ~= "0";

    return 0;
}

Compiler reports: Internal error: ..\ztc\cgcs.c 350
The code is incorrect (IIRC, appending/concatenation only makes sense on
arrays, not array elements). Still, maybe a more meaningful error message?
Compiler crashes when the array is static, but compiles when it is dynamic.

Thanks -- Les Baker
Aug 12 2003
parent "Walter" <walter digitalmars.com> writes:
Internal errors are always compiler bugs. I can take it from here.
Aug 12 2003