[Issue 7492] [CTFE] Error at assign to immutable character array
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 20 10:35:22 PST 2015
https://issues.dlang.org/show_bug.cgi?id=7492
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Denis Shelomovskij from comment #3)
> If function is executed during CTFE it's definitely effectively `pure` for
> given parameters so I don't understand your arguments.
Again, CTFE is not relevant. The OP code just fails to pass semantic analysis.
CTFE never runs on invalid code.
> Anyway "works with non-character arrays" comment isn't addressed. Event if
> this compiler error is an expected behaviour, the issue is in the fact other
> types don't produce the same error (try e.g. `int` and `Object` arrays).
Is that diagnostic issue? Please file another report. Thanks!
--
More information about the Digitalmars-d-bugs
mailing list