I for one have never heard of such a thing in a Catholic church -- I do recall a few sermons in the 50s about people who should show more respect in their dress, but never directed at one person.
Sometimes you just get a priest who's a crackpot.
It had never happened to me before! When I was a teenager I spent the Holy Week with my grandparents, in a dairy farm in northern Spain. I rode my horse, bareback, to all church services and never had anybody tell me that I wasn't clean or dressed up enough to go in! This experience that I was talking about got me by surprise, like a blow below the belt. But God used it to bring me closer to Him. And when something similar happened at my SB church, between an old lady and a visitor, I was able to (1)tell the visitor to please come in, God loved him and (2) ask the lady how did she know that there wasn't a good reason that man was not wearing a suit? I think I mentioned yesterday that the man is now attending church regularly and is an student in my Sunday school class. I wonder if I would have stood up to the old lady if it hadn't been for the painful memories of having been told that I was not welcome in a church because of my clothes!