In reply to aditgupta100:
You have to take up unsupported features with your vendor. This works fine in Questa.
It would help if you showed an example with the data you expect array and queue. Your latest description does not match what your original code was trying to do. Each push_back() was trying to push 8 elements onto the queue, and the for-loop iterated 4 times.