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-Thread: 103376,9fb8e2af320d5b3e X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bus error Date: Wed, 27 Jun 2007 22:01:47 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1182954233.788124.17920@c77g2000hse.googlegroups.com> <1182974545.047564.236590@z28g2000prd.googlegroups.com> <1182977295.227318.259300@i13g2000prf.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1182996107 878 192.74.137.71 (28 Jun 2007 02:01:47 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 28 Jun 2007 02:01:47 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:LO3M7O1MIiF3tNkwMgfW4injZss= Xref: g2news1.google.com comp.lang.ada:16328 Date: 2007-06-27T22:01:47-04:00 List-Id: Maciej Sobczak writes: > On 27 Cze, 22:02, Anh Vo wrote: > >> However, if the return statement is fully qualified as below, it works >> fine on all versions >> >> $$$ return T'(Ada.Finalization.Limited_Controlled with 7); > > I still get bus error with this. > Why should that make any difference, anyway (other than guessing > around the compiler bug)? Qualification should not be necessary in > this context, because the expected type for the aggregate is known > from the function return type. There is no ambiguity here that would > need to be resolved with the qualification. You are correct -- the return T'(...) version should behave the same as the return (...) version. If it doesn't, that's probably a bug in the compiler. Either way, I don't see any good reason for a bus error here. - Bob