comp.lang.ada
 help / color / mirror / Atom feed
From: "Markus Schöpflin" <no.spam@spam.spam>
Subject: Re: Differences in finalization of controlled objects between gcc 4.6 and gcc 4.7
Date: Fri, 27 Jul 2012 09:02:19 +0200
Date: 2012-07-27T09:02:19+02:00	[thread overview]
Message-ID: <jutedp$25m$1@speranza.aioe.org> (raw)
In-Reply-To: juahis$gjb$1@munin.nbi.dk

Am 20.07.2012 04:59, schrieb Randy Brukardt:
> "Markus Schï¿œpflin" <no.spam@spam.spam> wrote in message
> news:ju8u7t$kh9$1@speranza.aioe.org...
> ...
>> What surprises me is that the objects with address 08077F90 and 08077FA0
>> are finalized twice in the second case. I'm aware that this is allowed but
>> nevertheless I'm wondering why it happens here, because up to now I was
>> thinking that only by explicitly calling finalize() or when tasks are
>> involved that this actually happens. Should I consider this a regression
>> in gcc and report it as such?
>
> Those look like the temporary objects to me (since the array X should be
> finalized last, and these aren't that). And I don't know of any reason that
> temporaries should be finalized twice (or any reason that an implementer
> would want to do that). I think it is a bug, and you ought to report it as
> such.

It turned out that GNAT Pro 7 shows the same behaviour, so I reported it to 
AdaCore. So the fix will probably end up in GCC/GNAT in the foreseeable future.

Thanks,
Markus



      reply	other threads:[~2012-08-01  3:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 12:23 Differences in finalization of controlled objects between gcc 4.6 and gcc 4.7 Markus Schöpflin
2012-07-19 13:45 ` Georg Bauhaus
2012-07-19 13:59   ` Markus Schöpflin
2012-07-19 14:48     ` Georg Bauhaus
2012-07-20  2:56     ` Randy Brukardt
2012-07-20  2:59 ` Randy Brukardt
2012-07-27  7:02   ` Markus Schöpflin [this message]
replies disabled

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