https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91561
Bug ID: 91561
Summary: [Regression] Internal Compiler Error: type ‘ubyte[]’
can not be mapped to C++
Product: gcc
Version: 9.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: bugzilla at allegrodvt dot com
Target Milestone: ---
The following code compiles on gdc-8.2 but failed on gdc-9.2:
----------------------
extern(C++) :
alias ubyte[] Array;
class Interface
{
abstract void getArray(ref Array a);
}
void main()
{
}
-----------------------
The error is:
error: Internal Compiler Error: type ‘ubyte[]’ can not be mapped to C++
6 | abstract void getArray(ref Array a);
| ^