D'oh. The problem is caused not by raising or handling exceptions but by storing the exception traceback in the exception occurrence, as specified by passing -E to gnatbind. If I bind hello.adb with -E I can reproduce the storage_error in GNAT.Expect.
As I don't see any reason why gprbuild would need exception tracebacks for normal operation, I'll disable them. -- Ludovic Brenta. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org