https://issues.dlang.org/show_bug.cgi?id=14419

--- Comment #5 from Kenji Hara <[email protected]> ---
(In reply to Ketmar Dark from comment #3)
> alias extern(C) immutable void function () VectorFunc;
> VectorFunc[3] g_pfnVectors = [
>   Reset_Handler,
> ];
> 
> extern(C) void Reset_Handler () {
>   while (true) {}
> }

It's another issue in the process of initializer semantic. Essentially it
should make a type error: Reset_Handler() is void and has no value, but current
dmd prematurely runs CTFE.

--

Reply via email to