[Issue 23219] ICE: AssertError at src/dmd/hdrgen.d(1910): Assertion failure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 5 14:52:04 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23219
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce the ICE anymore. I get:
test.d(9): Error: array cast from `int[4]` to `float[4]` is not supported at
compile time
test.d(9): while evaluating `pragma(msg, convtest([1, 2, 3, 4])[0])`
test.d(11): Error: array cast from `int[4]` to `float[4]` is not supported at
compile time
test.d(11): while evaluating: `static assert((cast(float[4])convtest([1,
2, 3, 4]))[0] == 1.0F)`
It seems that the cast is not supported at ctfe.
--
More information about the Digitalmars-d-bugs
mailing list