comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Belmont <sbelmont700@gmail.com>
Subject: Re: limited allocated classwide types
Date: Thu, 3 Nov 2011 16:35:14 -0700 (PDT)
Date: 2011-11-03T16:35:14-07:00	[thread overview]
Message-ID: <e3ca4799-e6e1-42c3-a522-d04b8221979f@er6g2000vbb.googlegroups.com> (raw)
In-Reply-To: m21utoer3d.fsf@pushface.org


To answer the first response, removing the limited type (for both the
interface and implementation and, obviously, switching to 'normal'
controlled) causes it to behave normally.

More vexxing is that I can alter what happens in the presumably
incorrect case simply by adding, removing, and reordering the
functions in the spec (which smacks heavily of a mixed up vtable, to
excuse the c++ terminology), which the second response more-or-less
supports.

Though it is satisfying to hear that this is most likely a compiler
error, and not poor programming skills on my part, I can't help but
feel unnerved by this.  I am only months into being an Ada programmer
and not trying to anything that isn't well described and ostensibly
supported, so it seems odd that such a basic test case would uncover
and compiler bug.  Moreover, one of the points of pride is that Ada
compilers are heavily tested and verified for safety critical apps,
which this seems to undercut.  Not to sound snarky, but I personally
have never found a bug in a GPL C compiler.

In either case, just to confirm, this is the "correct" way to code
this?  Is there any official channel for calling this a bug?

Thank you again for verifying my sanity

-ab



  reply	other threads:[~2011-11-03 23:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 22:01 limited allocated classwide types Simon Belmont
2011-11-03 22:50 ` Adam Beneschan
2011-11-03 23:14 ` Simon Wright
2011-11-03 23:35   ` Simon Belmont [this message]
2011-11-04  0:30     ` Adam Beneschan
2011-11-04  0:51       ` Adam Beneschan
2011-11-04  7:40     ` Simon Wright
2011-11-04  8:42       ` Dmitry A. Kazakov
2011-11-04  9:18     ` Georg Bauhaus
2011-11-04  9:53     ` Brian Drummond
2011-11-04 16:39       ` Simon Wright
2011-11-04 18:47       ` Adam Beneschan
2011-11-04 20:03         ` Simon Wright
2011-11-08  4:25         ` Randy Brukardt
2011-11-08 12:10           ` Brian Drummond
2011-11-08 12:35             ` Simon Wright
2011-11-08 13:05               ` Dmitry A. Kazakov
2011-11-10  9:56             ` Álex R. Mosteo
2011-11-04 12:25 ` Stephen Leake
replies disabled

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