Skip to content

[REG 2.112.0] BindBC Loader compilation fails with dynamicBC configuration #23315

Description

@Mergull

BindBC Loader compilation fails with dynamicBC configuration (dynamic linking and betterC flag) with error:

/usr/include/dlang/dmd/core/internal/newaa.d(362,16): Error: expression `new Bucket!(string, uint)[](dim)` allocates with the GC and cannot be used with switch `-betterC`
        return new Bucket[dim];
               ^
/usr/include/dlang/dmd/core/internal/newaa.d(225,19): Error: `TypeInfo` cannot be used with `-betterC`
        entryTI = typeid(Entry!(K, V));
                  ^
/usr/include/dlang/dmd/core/internal/newaa.d(44,5):        instantiated from here: `Impl!(string, uint)`
    Impl!(K,V)* impl;
    ^
/usr/include/dlang/dmd/core/internal/newaa.d(83,25):        instantiated from here: `AA!(string, uint)`
    return *(cast(inout(AA!(K, V))*)&aa);
                        ^
/usr/include/dlang/dmd/core/internal/newaa.d(618,27):        instantiated from here: `_toAA!(string, uint)`
    auto aa = _toAA!(K, V)(a);

.dub/packages/bindbc-common/1.0.5/bindbc-common/source/bindbc/common/codegen.d(162,27):        instantiated from here: `_d_aaIn!(uint[string], string, uint, string)`
                if(auto num = fn.iden in usedIdens){

source/bindbc/sdl/codegen.d-mixin-12(12,43):        instantiated from here: `joinFnBinds!false`
alias joinFnBinds = bindbc.common.codegen.joinFnBinds!false;

Issue on BindBC loader - BindBC/bindbc-loader#11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions