comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: AdaCore Community 2018 Bugs
Date: Sun, 12 Aug 2018 17:37:51 +0100
Date: 2018-08-12T17:37:51+01:00	[thread overview]
Message-ID: <lywosvy200.fsf@pushface.org> (raw)
In-Reply-To: 438cca28-9ef5-4ea4-a45c-e7c28d6bf069@googlegroups.com

Roger <rogermcm2@gmail.com> writes:

> On Sunday, August 12, 2018 at 5:33:35 PM UTC+10, Simon Wright wrote:
>> Roger <rogermcm2@gmail.com> writes:
>> 
>> > As it now occurs even with GCC 6.1.0 I'm thinking it most likely has
>> > to do with recent OSX changes.
>> 
>> Since it occurs on Debian Stretch, GCC 6.3.0, it can't be just macOS.
>> 
>> The actual error reported can change with successive compilations
>> (sometimes it says something like 'undeclared variable ""', seems to
>> settle on the CE), a surefire symptom of bad memory handling.
>> 
>> > This problem doesn't occur for compile only.
>> > It occurs when I Build All from GPS
>> 
>> The error is a crash in the compiler, doesn't matter how you get there.
>
> I Have cut most of the code out of the test program but the crash
> still occurs.  However, I am making progress on tracking back to the
> minimal code where the crash first occurs.

The problem is in the packages Morph.Mesh_Morph_Value_Pointers,
Mesh_Morph_Weight_Pointers.

You say

   package Mesh_Morph_Value_Pointers is new Interfaces.C.Pointers
     (Interfaces.C.unsigned, API_Morph_Value, API_Morph_Values_Array,
      API_Morph_Value'(others => <>));

but

   type API_Morph_Value is new Interfaces.C.unsigned;

so others => <> isn't a legal expression for an API_Morph_Value; you
should say

      API_Morph_Value'(0));


There is still a bug, which ought to be fixed, but it's that GNAT has
failed to recognise the actual problem and has got fatally confused.


  reply	other threads:[~2018-08-12 16:37 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-11  1:06 AdaCore Community 2018 Bugs Roger
2018-08-11  3:09 ` Shark8
2018-08-21  1:10   ` Roger
2018-08-21  6:06     ` Jacob Sparre Andersen
2018-08-21  6:42       ` Roger
2018-08-21 21:24         ` Randy Brukardt
2018-08-22  0:51           ` Roger
2018-08-22  3:46             ` Dennis Lee Bieber
2018-08-11  5:15 ` Per Sandberg
2018-08-13 20:58   ` olivermkellogg
2018-08-11  8:42 ` Jeffrey R. Carter
2018-08-11  9:03   ` Roger
2018-08-11 12:19   ` Roger
2018-08-11 17:20     ` Simon Wright
2018-08-11 23:44       ` Roger
2018-08-12  1:50       ` Roger
2018-08-12  7:33         ` Simon Wright
2018-08-12 10:18           ` Roger
2018-08-12 11:45           ` Roger
2018-08-12 16:37             ` Simon Wright [this message]
2018-08-13  2:02               ` Roger
2018-08-13  2:54               ` Roger
replies disabled

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