www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18716] New: [ICE] type const(char)[] can not be mapped to C++

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

          Issue ID: 18716
           Summary: [ICE] type const(char)[] can not be mapped to C++
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: doob me.com

The following code:

extern (C++) void foo(const(char)[]) {}

Gives the following error:

Error: Internal Compiler Error: type const(char)[] can not be mapped to C++

--
Apr 03 2018