www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18531] New:

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

          Issue ID: 18531
           Summary: core.exception.RangeError src/core/demangle.d(216):
                    Range violation
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com

different from https://issues.dlang.org/show_bug.cgi?id=18208
```
void main(){
  auto
s=`_D3std3uni__T6toCaseS_DQvQt12toLowerIndexFNaNbNiNewZtVii1043S_DQCjQCi10toLowerTabFNaNbNiNemZwSQDo5ascii7toLowerTAyaZQDzFNaNeQmZ14__foreachbody2MFNaNeKmKwZ14__foreachbody3MFNaNeKwZi`;
  import core.demangle;
  auto dst=new char[200];
  import std.stdio;
  writeln(demangle(s, dst));
}

```

--
Feb 27 2018