www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18654] New: [REG2.080] ICE in tocsym.d

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

          Issue ID: 18654
           Summary: [REG2.080] ICE in tocsym.d
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

```
void main()
{
    import std.algorithm, std.stdio;
    "aa_b".chunkBy!((a, b) => a == '_').writeln;
}
```


0x00005555558e5374 in toSymbol::ToSymbol::visit(FuncDeclaration*)
(this=0x7fffffffc2f0, fd=0x7ffff7ea0230) at dmd/tocsym.d:317
317                 f.Fstartline.Slinnum = fd.loc.linnum;

(this=0x7fffffffc2f0, fd=0x7ffff7ea0230) at dmd/tocsym.d:317

(this=0x7ffff7ea0230, v=0x7fffffffc2f0) at dmd/func.d:2277

dmd/tocsym.d:443

(fd=0x7ffff7ea0230, multiobj=false) at dmd/glue.d:813

(this=0x7fffffffc8d8, fd=0x7ffff7ea0230) at dmd/toobj.d:312

(this=0x7ffff7ea0230, v=0x7fffffffc8d8) at dmd/func.d:2277

multiobj=false) at dmd/toobj.d:1371

multiobj=false) at dmd/glue.d:406

(argv=0x7fffffffd6c8, argc=2) at dmd/mars.d:949


--
Mar 23 2018