According to my Peterson Field Guide, the only thorny plants with compound leaves (both opposite and alternate) are locusts, as well as a couple of aralias, zanthoxylums and Poncirus trifoliata, the latter having trifoliate leaves so not that. Looks more like a locust to me. I went out and took these two pictures to compare, this is 'Shademaster' honeylocust (the "civilized" honeylocusts like this don't have the thorns):
This one is a Gleditsia, but there are several other locusts (Robinia) and I haven't looked all of those up to see if they're similar. I don't think it's a black locust (R. pseudo-acacia) because the leaves would be more rounded.