Quirrell's voice trailed away. Harry was remembering his trip to Diagon Alley - how could he have been so stupid? He'd seen Quirrell there that very day, shaken hands with him in the Leaky Cauldron. (Harry Potter)
What does the perfect tense intend to say?
How was it possible that he had been so stupid?