comp.lang.ada
 help / color / mirror / Atom feed
* GNAT crunch (suspected bug with types derived from unchecked union)
@ 2009-07-13 10:49 Hibou57 (Yannick Duchêne)
  2009-07-13 12:51 ` Hibou57 (Yannick Duchêne)
  0 siblings, 1 reply; 5+ messages in thread
From: Hibou57 (Yannick Duchêne) @ 2009-07-13 10:49 UTC (permalink / raw)


Hello,

Surprisingly, GNAT persist in crashing when compiling a little project
(surprisingly beceause it is known all over the place to be stable).

It ask me to send a report by mail, but request me to send some
temporary files which I cannot find any where (it gives paths, but no
files found for these paths).

As I'm not a GNAT Pro client, do you think it is useful if I send a
report, even with some missing files ?

What are they doing with these files ? (the message aks for source
files as well)

I will keep an archive of the project in its actual state, to test it
on Janus as soon as I will get it (while don't know when).

The crash seems to be caused by the usage of an uncheched record.

1) I have an uncheched record defined in a root package.
2) A child package makes a derived new type from this record.
3) This new type is part of another record which has a full
representation clause.
4) The compiler first complained the size requested by the
representation was too small.
5) So I added an unchecked pragma to the derived type as well.
6) Then when I wanted to compile the project, it crashs (I've tried
many time after clean up, but it insist on)

I've already meet steps 1 to 5 in this project, but after I've added
the pragma to the derived type, it was compiling without a trouble.
There it is not.

I will have to check the ARM about this pragma, beceause as it is
considered a reprensentation clause, I was thinking it was inherited
by derived types. But messages from the compiler seems to tell it is
not (I do not know if the buf start there, so I will check for it
first).



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-13 23:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13 10:49 GNAT crunch (suspected bug with types derived from unchecked union) Hibou57 (Yannick Duchêne)
2009-07-13 12:51 ` Hibou57 (Yannick Duchêne)
2009-07-13 15:27   ` Hibou57 (Yannick Duchêne)
2009-07-13 21:59     ` sjw
2009-07-13 23:59       ` Hibou57 (Yannick Duchêne)

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