comp.lang.ada
 help / color / mirror / Atom feed
From: gerrshapovalov@gmail.com
Subject: Re: yes another gnat bug (inherited tagged type as record field is too much for gnat??)
Date: Fri, 22 Nov 2019 05:33:49 -0800 (PST)
Date: 2019-11-22T05:33:49-08:00	[thread overview]
Message-ID: <30d105f9-086f-4b1f-8379-ae1ab2d72c8a@googlegroups.com> (raw)
In-Reply-To: <9bee64ac-42c4-495e-9ce6-69c306b8e3a5@googlegroups.com>

Just a short addition:

This is with gnat-gpl-2019 (Gentoo Linux), compiled against the 8.3.1 gcc backend.

Also, I can "cure" the compilation problem by wrapping access to the list into an (abstract and overridden in child) function returning Reference to the List.
gnat manages to compile it then. However, upon execution it throws  "discriminant check failed" run-time exception..

(Reference to the list is that standard construct like:

type Input_Reference_Type  (Data : not null access IL.List_Interface'Class) is null record
        with Implicit_Dereference => Data;

This allows to return a callable object that can be used to call methods of List and do indexed data access (assignment/reading)
)


  reply	other threads:[~2019-11-22 13:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-22 13:26 yes another gnat bug (inherited tagged type as record field is too much for gnat??) gerrshapovalov
2019-11-22 13:33 ` gerrshapovalov [this message]
2019-11-22 13:39 ` Simon Wright
2019-11-22 13:57   ` gerrshapovalov
2019-11-25 19:31     ` gerrshapovalov
2019-11-25 20:01       ` Per Sandberg
2019-11-26 13:49         ` gerrshapovalov
2019-11-26 16:09           ` joakimds
2019-11-26 17:09             ` gerrshapovalov
2019-11-26 18:01           ` Simon Wright
2019-12-02  9:02 ` George Shapovalov
2019-12-02 10:02   ` joakimds
2019-12-02 17:12   ` Optikos
2019-12-02 17:50     ` AdaMagica
2019-12-02 19:51     ` George Shapovalov
2019-12-02 20:18       ` Simon Wright
2019-12-02 21:02       ` Optikos
2019-12-09 13:44         ` charlet
2019-12-10 12:12           ` charlet
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox