in a Gym yes but even with a pair of basic squat stands you can squat above a flat bench so you can sit down & rest a moment if you canīt make the rep
try one legged squats off a flat bench works too..not for pussy boys 
some people in the Gym are just looking for attention, donīt understand the risks
Squatting with a bench between legs is too dangerous, if you can't make it and have to ditch you probably ruined the bar as well

Ever since I started lifting regularly at 14-15 I made elaborate safety mechanisms LOL, when squatting I put a bench on both sides and then a plate or two on top so it was the exact bottom height minus an inch. On diagonal leg presses I put weights or some type of box on one side so the weights on the machine would hit them at the bottom.
Even at 15 I had spotters, I was very safety conscious. Remembered I had this pic in a photo album. 440lbs lock-outs over the stands. Spotters look prepubertal LOL. Some time after this pic tiny Indian kid in the back took 10 single 5mg Russian Dianabol tablets and benched 200lbs! LOLOL