I re-use compost all the time, but I do make sure I grow something else in it the second time round. My used compost from tomatoes gets mixed with some fresh compost, plus some fertiliser and I use it for containers of bulbs and similar for the winter and following spring. If anything edible gets planted in this mix, it is usually oriental veg or salads for the greenhouse.
It has never caused me any problems, but I think replanting the same crop might be dodgy. Perhaps others have done this and can re-assure you on that one.