What data types accept '{default:} form of initialization

In reply to dave_59:

Apologies. Here is the error (this is on edaplayground, not sure if it is an issue due to tool being outdated)

This declaration is inside of a class.

int q[$:3] = '{default:3};
$display (“%p”, t.q);

With tool A:

Error-[IAP] Illegal assignment pattern
testbench.sv, 12
test, “'{default:3}”
Assignment pattern is illegal due to: Assignment pattern to dynamic
array/queue of unknown size.
Write the Assignment Pattern using only positional and replicated notation.
No type/default literals are allowed here.

With tool B: just an empty queue, no error

'{}

With tool C:

ERROR VCP7051 “Array literals with keys cannot be assigned to dynamic arrays or queues.” “testbench.sv”