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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3a414836333dfef7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-04 16:40:42 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Elaboration in GNAT Date: 4 Jan 2002 16:40:41 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0201041640.71e8c7c5@posting.google.com> References: <1006952193.650930@edh3> <5ee5b646.0111281125.7e9fbca3@posting.google.com> <1010151875.216658@edh3> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1010191241 3787 127.0.0.1 (5 Jan 2002 00:40:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 5 Jan 2002 00:40:41 GMT Xref: archiver1.google.com comp.lang.ada:18571 Date: 2002-01-05T00:40:41+00:00 List-Id: Frode Tenneboe wrote in message news:<1010151875.216658@edh3>... > However, I find the above warning a bit misplaced in my > case. I would have preferred: > > bar.adb:69:04: warning: instantiation of "Client" may raise Program_Error > bar.adb:69:04: warning: missing pragma Elaborate_Body in spec Well perhaps you would have preferred that the compiler tell you this, but it won't because it is wrong! The use of a EB pragma in the spec is not an adequate solution for this case! > I'm also unsure if this is always true, but > > alternatively: It is not always true > foo.adb:69:04: warning: instantiation of "Client" may raise Program_Error > foo.adb:69:04: warning: missing pragma Elaborate_All for "bar" or > foo.adb:69:04: warning: missing pragma Elaborate_Body in "bar" This is getting two separate things mixed up I am afraid.