[Bug d/21355] New: can't slice a dynamic array

andrew at ugh dot net.au sourceware-bugzilla@sourceware.org
Wed Apr 5 16:23:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21355

            Bug ID: 21355
           Summary: can't slice a dynamic array
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: d
          Assignee: unassigned at sourceware dot org
          Reporter: andrew at ugh dot net.au
  Target Milestone: ---

With a declaration like:

char[] string = "hello";

I can print it:

(gdb) p string
$1 = "hello"

But can't slice it:

(gdb) p string[0 .. 3]
cannot take slice of non-array

I'm compiling using dmd v1.079.0 and using gdb as of
4ac40124eef08045bf99ad9f4fcc277961953109.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list