comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: ANN: Simple components for Ada v3.9
Date: Wed, 14 Jul 2010 07:54:10 -0700 (PDT)
Date: 2010-07-14T07:54:10-07:00	[thread overview]
Message-ID: <5d6c707b-b384-4353-b9f3-e43c310e8b27@j13g2000yqj.googlegroups.com> (raw)
In-Reply-To: 1xxnl8zxlrls9$.1tl9y8itzni93.dlg@40tude.net

Dmitry A. Kazakov wrote on comp.lang.ada:
> On Tue, 13 Jul 2010 20:20:00 +0100, Simon Wright wrote:
>> "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de> writes:
>>> On Tue, 13 Jul 2010 05:45:11 -0700 (PDT), Ludovic Brenta wrote:
>>>>> P.S. In any case in order to use the persistent layer of Simple Components,
>>>>> the gcc 4.4 must be fixed first. The current version has controlled types
>>>>> broken and some other severe issues.
>>>>
>>>> Wow, that's a pretty grave problem; if what you say is true, a fix in
>>>> the stable GCC 4.4 branch is justified. What is the bugzilla number
>>>> for this bug?
>>>
>>> There are several. For example this one:
>>
>> With GCC 4.5.0 and with GNAT GPL 2010 (both on Mac OS X Snow Leopard)
>> this program produces
>>
>>    $ ./controlled_array
>>    Count 1
>>    Successful finalization
>>    Successful finalization
>>    Successful finalization
>
> This is how it should be.
>
> Debian's or Fedora's gcc 4.4 spits:
>
> Count 2
> Illegal count in finalization 1
>
> raised PROGRAM_ERROR : adjust/finalize raised PROGRAM_ERROR:
> controlled_array.adb:18 explicit raise


Looks like this might be the patch that corrects this bug:

2009-04-17 Thomas Quinot <quinot@adacore.com>

	* exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
	case for the case of an aggregate component, the attach call for the
	result is actually needed.

	* exp_aggr.adb (Backend_Processing_Possible): Backend processing for
	an array aggregate must be disabled if the component type requires
	controlled actions.

	* exp_ch3.adb: Minor reformatting

I'll add a backport of this patch to my long TODO list.

--
Ludovic Brenta.



  reply	other threads:[~2010-07-14 14:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-11 20:52 ANN: Simple components for Ada v3.9 Dmitry A. Kazakov
2010-07-12 20:36 ` Dirk Heinrichs
2010-07-12 22:09   ` tonyg
2010-07-13  8:06     ` Dmitry A. Kazakov
2010-07-13  8:37       ` tonyg
2010-07-13 16:59       ` Warren
2010-07-13  7:55   ` Dmitry A. Kazakov
2010-07-13 12:45     ` Ludovic Brenta
2010-07-13 16:35       ` Dmitry A. Kazakov
2010-07-13 19:20         ` Simon Wright
2010-07-13 19:55           ` Dmitry A. Kazakov
2010-07-14 14:54             ` Ludovic Brenta [this message]
2010-08-03 17:44               ` GNAT bug: array aggregate containing controlled objects (was: ANN: Simple components for Ada v3.9) Ludovic Brenta
2010-08-03 19:28                 ` GNAT bug: array aggregate containing controlled objects Dmitry A. Kazakov
replies disabled

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