Skip to content

[Bug]: internal error when assigning array slices with --debug #28285

@jabraham17

Description

@jabraham17

The following code results in an internal error when compiled with --debug

use BlockDist;
proc copy(x : [?d] ?t) {
  var retVal = blockDist.createArray(d, t);
  coforall loc in Locales do on loc {
    var xLD = x.localSubdomain() ;
    retVal[xLD] = x[xLD];
  }
  return retVal;
}

var arr = blockDist.createArray(1..100, int);

var arrCopy = copy(arr);
writeln(arrCopy);
chpl --debug bug.chpl
$CHPL_HOME/modules/standard/CTypes.chpl:99: internal error: no field 'eltType' in class 'c_ptr(_array(unmanaged BlockArr(1,int(64),one,int(64),unmanaged DefaultDist)))' in getField() [codegen/cg-type.cpp:777]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions