I have a slightly strange situation. I am a non-EU citizen, and a resident of Milan. I am currently in Spain doing an internship as a visiting PhD student, and it is supposed to end around mid July.
Since I am a non-EU citizen, I went in February to get a Spanish type-D visa, so I can enter Spain and do research activities. I was granted a multiple-entry visa for 6 months. It ends in August 2018.
I had at that time the permesso di soggiorno, and it is valid until June 20. I also visited Milan in April and I applied for a renewal and I have with me now the ricevuta (a receipt that confirms you are waiting for the renewal of your permit of stay). I am able to stay in Spain beyond June 20 since I have the visa.
Every time I entered Spain recently, my passport was not stamped, since I was coming from Italy to Spain.
On July 1, I am traveling to Romania to attend a conference for 5 days. With my multiple-entry long-term Schengen visa, it seems that I can enter Romania (on that date I will only use my visa and I will not use my permit of stay since it will be expired).
But I never had my passport stamped when entering Spain previously, and now it should be stamped when leaving Spain to Romania, and as well when leaving Romania and coming back to Spain.
Is this an issue that I am leaving from Spain and my passport was not stamped on entry in Spain? Will I be asked about this? And in case I was asked, should I explain that I had a valid Italian permit of stay and that I entered Spain through Italy and that is why it was never stamped?