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 Path: g2news1.google.com!news3.google.com!fu-berlin.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sun, 22 Nov 2009 12:25:40 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Operation can be dispatching in only one type References: <025105f2-5571-400e-a66f-ef1c3dc9ef32@g27g2000yqn.googlegroups.com> <94e76749-c49c-45aa-b7dc-386da0d71c66@e4g2000prn.googlegroups.com> <1u0im1tdws15u.1n9v9rz7bu4t4$.dlg@40tude.net> <39kf90ha60px$.d7746cf5cx6h.dlg@40tude.net> <691d6892-bc5e-4d81-8025-c36556bf2593@13g2000prl.googlegroups.com> <1h9hilcg5i6il.12edpgu4szw1h.dlg@40tude.net> <1wtsriaxu0s4s$.ikwnnz5teukp$.dlg@40tude.net> <1iipp3bn16fe2.yqa1gz1ru17a$.dlg@40tude.net> <18wh86jvjvoe0.cofxcc8udm6q$.dlg@40tude.net> <53a35ed9-88ac-43dc-b2a2-8d6880802328@j19g2000yqk.googlegroups.com> In-Reply-To: <53a35ed9-88ac-43dc-b2a2-8d6880802328@j19g2000yqk.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4b091fb9$0$6567$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 22 Nov 2009 12:25:45 CET NNTP-Posting-Host: 8ed52ec3.newsspool4.arcor-online.net X-Trace: DXC=6C4\j50GELIC4i^e1BZ=_H4IUKm0I4H X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8192 Date: 2009-11-22T12:25:45+01:00 List-Id: On 11/22/09 6:45 AM, xorque wrote: > > For this (minor) project, I tried a multitude of different approaches > and ended up > with one that appeared safe, right until it ended up causing GNAT to > have some > sort of heart attack: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42140 Do you get segmentation fault with GNAT run in Ada mode? (Currently, this would mean options -gnato -fstack-check and no -gnatp, I think.) What happens if you name the access-to-String type used for a component of Archive_t, i.e. something like type String_a is access String; subtype File_Name_a is String_a; type Archive_t is new Ada.Finalization.Limited_Controlled with record Name : File_Name_a; File : Stream_IO.File_Type; end record;