[Issue 18451] [REG 2.076.1] In certain circumstances, calling remove on an array of delegates fails
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Dec 18 15:18:20 UTC 2018
    
    
  
https://issues.dlang.org/show_bug.cgi?id=18451
RazvanN <razvan.nitu1305 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com
--- Comment #9 from RazvanN <razvan.nitu1305 at gmail.com> ---
I'm not sure this is a dmd issue. For example, this compiles just fine:
void main(){
    import std.algorithm;
    //import std.stdio;
    void delegate(void*) dg;
    void delegate(void*)[] dgs = [dg, dg, dg];
    //dgs.writeln;
    dgs.remove(1);
}
However uncommenting the commented lines issues the error. I suspect something
was broken in the innards of writeln.
--
    
    
More information about the Digitalmars-d-bugs
mailing list