August 03, 2007 invalid propertie crashes the compiler | ||||
---|---|---|---|---|
| ||||
hi, can someone file this major bug please? [CODE] import std.stdio; void putOut(string bla) { writefln(bla); } void main() { string[] arr; foreach(it; arr) { putOut(i.simsalabim ~ " foo?"); } } [/CODE] i know i.simsalabim is a invalid property for a string but the compiler should definitely not crash on that ! it occures at least on dmd2.003 as i testet it on that. |
August 03, 2007 Re: invalid propertie crashes the compiler | ||||
---|---|---|---|---|
| ||||
Posted in reply to Extrawurst | as i send it away i recognized it doesn't seem to be the property but the concatening op crashing dmd here..
Extrawurst schrieb:
> hi,
> can someone file this major bug please?
>
> [CODE]
> import std.stdio;
>
> void putOut(string bla) {
> writefln(bla);
> }
>
> void main() {
>
> string[] arr;
>
> foreach(it; arr) {
> putOut(i.simsalabim ~ " foo?");
> }
> }
> [/CODE]
>
> i know i.simsalabim is a invalid property for a string but the compiler should definitely not crash on that !
>
> it occures at least on dmd2.003 as i testet it on that.
|
Copyright © 1999-2021 by the D Language Foundation