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

Basile-z <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Basile-z <[email protected]> ---
(In reply to Salih Dincer from comment #4)
> This isn't a bug!
> 
> void main()
> {
>   struct Index 
>   { 
>     size_t value; 
>     alias value this; 
>   } 
>   
>   enum size_t i = Index(); 
>   int[i] a;
>   int[cast(size_t)Index()] b;
>   static assert(a.length == b.length);
> }

before the fix DMD did a hidden cast a cast but too late.

--

Reply via email to