From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dfadb64ce9f4daa5 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Which compiler is correct?? Date: 1996/09/10 Message-ID: #1/1 X-Deja-AN: 179847786 references: <514uuu$d8i@uuneo.neosoft.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-09-10T00:00:00+00:00 List-Id: Ah, finally I figured this out (I would have had it immediately, if you had said where the error message was posted): exception when Error_In_Demo: others => Ada.Exceptions.Save_Occurrence (Error_In_Demo,Error_List(3)); that's obviously incorrect, Error_In_Demo is a constant, yet you are using it as the Target for save occurrence. I think you are mixing up target and source in the call to Save_Occurrence (not surprising, I think they are the wrong way round too :-) Anyway, GNAT should certainly post an error message here, these exception occurrence constants are a little peculiar, and we just missed this. Indeed it might have gone undetected for a long time if you had not made this error of having the parameters the wrong way round! I guess the reason that you did not see the error was that you were determined that you knew which way round the parameters were. This is a common occurrence -- you get "trapped" in a bug :-)