Um, I'm not sure. A clause with a gerund in should act as a noun in the whole sentence, and I don't think this does...
EDIT - but I don't think it's acting as an adjective either. Have posted the question on another forum that actually has a Pedants' Corner just for such questions