Simulator stuck as a result of ingore_bins / bins with syntax

hello,
I am trying to use the “bins with” syntax in the following manner, for some reason the simulation gets stuck during elaboration. when removing this syntax, the simulation completes normally, what can be the cause?

cp_cfg_channel_num: coverpoint chid
{
/
CP USER DESCRIPTION: 0-26,31 */
// `include “channels_indexing.inc”
// bins channel_id = cp_cfg_channel_num with (epi_proj_coverage_pkg::valid_chid(item));
**bins channel_id = cp_cfg_channel_num with (item inside {epi_proj_coverage_pkg::valid_chid()});
** type_option.weight = 0;
}

typedef int bins_q[$];

// this function returns 1 if chid should be covered
function automatic bins_q valid_chid();
    bins_q ret_item;
    // in Hawk, the valid chid are 0-26 & 31
    for (int chid=0; chid<27; chid++) begin
        ret_item.push_back(chid);
    end
    ret_item.push_back(31);
    return ret_item;
endfunction : valid_chid

thanks in advance.

In reply to kobiyonai:

There’s not enough information here to see what might be wrong, and this looks like it could be a tool specific issue. Since this forum is not for discussion of tool specific issues, I suggest contacting your tool vendor directly for support where you can provide more details.