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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9fb8e2af320d5b3e,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!c77g2000hse.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Bus error Date: Wed, 27 Jun 2007 07:23:53 -0700 Organization: http://groups.google.com Message-ID: <1182954233.788124.17920@c77g2000hse.googlegroups.com> NNTP-Posting-Host: 128.141.44.112 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1182954233 16473 127.0.0.1 (27 Jun 2007 14:23:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 27 Jun 2007 14:23:53 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: c77g2000hse.googlegroups.com; posting-host=128.141.44.112; posting-account=Ch8E9Q0AAAA7lJxCsphg7hBNIsMsP4AE Xref: g2news1.google.com comp.lang.ada:16320 Date: 2007-06-27T07:23:53-07:00 List-Id: I have found a problem with my compiler: -- a.ads with Ada.Finalization; package A is type T is tagged limited private; function Make return T; private type T is new Ada.Finalization.Limited_Controlled with record X : Integer; end record; overriding procedure Finalize(V : in out T); end A; -- a.adb with Ada.Text_IO; package body A is function Make return T is begin return (Ada.Finalization.Limited_Controlled with 7); end Make; procedure Finalize(V : in out T) is begin Ada.Text_IO.Put("Finalizing T"); end; end A; -- hello.adb with A; procedure Hello is Y : A.T := A.Make; begin null; end Hello; $ gnatmake hello gcc -c hello.adb gcc -c a.adb gnatbind -x hello.ali gnatlink hello.ali $ ./hello Bus error $ GNAT version: 4.3.0 20070527 (experimental) BTW - is the code correct at all? I'm worried about A.Make in particular. -- Maciej Sobczak http://www.msobczak.com/