August 13, 2003 Possible bug: "internal error" compiler message | ||||
---|---|---|---|---|
| ||||
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 |
Copyright © 1999-2021 by the D Language Foundation