<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com.au/group/comp.lang.ada</id>
  <title type="text">comp.lang.ada Google Group</title>
  <subtitle type="text">
  Discussion about Ada*.
  </subtitle>
  <link href="/group/comp.lang.ada/feed/atom_v1_0_msgs.xml" rel="self" title="comp.lang.ada feed"/>
  <updated>2009-11-22T18:41:14Z</updated>
  <generator uri="http://groups.google.com.au" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T18:41:14Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/8aae91c2dd955a31?show_docid=8aae91c2dd955a31</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/8aae91c2dd955a31?show_docid=8aae91c2dd955a31"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  On Nov 22, 6:28 pm, &amp;quot;Dmitry A. Kazakov&amp;quot; &amp;lt;mail...@dmitry-kazakov.de&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Ok, thanks for the explanation. &lt;br&gt; I made the change you suggest to initialize (&amp;quot;save&amp;quot;) the archive and &lt;br&gt; the crash &lt;br&gt; doesn&#39;t occur. I&#39;ve closed the bug on the GCC due to the discussion of &lt;br&gt; the &lt;br&gt; bug becoming confused between two issues (one of them - this one -
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dmitry A. Kazakov</name>
  <email>mail...@dmitry-kazakov.de</email>
  </author>
  <updated>2009-11-22T18:28:32Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/9eb4a7eaa551e4da?show_docid=9eb4a7eaa551e4da</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/9eb4a7eaa551e4da?show_docid=9eb4a7eaa551e4da"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  The problem semantically is that you convert type, which would/should &lt;br&gt; create a copy of a limited object. &lt;br&gt; Within a declaration &amp;quot;:=&amp;quot; denotes initialization. You may not convert &lt;br&gt; anything initializing a limited object. &lt;br&gt; Proper ways to go: &lt;br&gt; O : constant Archiver.Archive_t&#39;Class := &lt;br&gt; Archiver.Open_Archive (A, &amp;quot;file.zip&amp;quot;);
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T18:08:38Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/512aa27ddf7b7be4?show_docid=512aa27ddf7b7be4</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/512aa27ddf7b7be4?show_docid=512aa27ddf7b7be4"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  If it&#39;s not already obvious, I&#39;m aware that there&#39;s a bug in the above &lt;br&gt; code but am &lt;br&gt; not currently convinced that it&#39;s the cause of *this* crash as the &lt;br&gt; crash occurs &lt;br&gt; before the archive is finalized.
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T18:03:22Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/30b30ffbe6d19f2a?show_docid=30b30ffbe6d19f2a</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/30b30ffbe6d19f2a?show_docid=30b30ffbe6d19f2a"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  On Nov 22, 5:41 pm, &amp;quot;Dmitry A. Kazakov&amp;quot; &amp;lt;mail...@dmitry-kazakov.de&amp;gt; &lt;br&gt; wrote: &lt;br&gt; The design is both irrelevant and obsolete. I&#39;m just trying to find &lt;br&gt; out if &lt;br&gt; the problem is *definitely* that code so that I can close a bug in the &lt;br&gt; GCC tracker. &lt;br&gt; Is it possible to save the return value of Open_Archive, or not? &lt;br&gt; Regards,
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dmitry A. Kazakov</name>
  <email>mail...@dmitry-kazakov.de</email>
  </author>
  <updated>2009-11-22T17:41:02Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/bb6511f7768b84ad?show_docid=bb6511f7768b84ad</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/bb6511f7768b84ad?show_docid=bb6511f7768b84ad"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  And I don&#39;t understand your design. If Archive is a Stream derive then it &lt;br&gt; from Root_Stream_Type. If it deals with a stream then pass &lt;br&gt; Root_Stream_Type&#39;Class to the operations that need it. &lt;br&gt; But never ever return pointers to components without an urgent need.
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T16:52:05Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/5fae2dbb2c46cfd4?show_docid=5fae2dbb2c46cfd4</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/5fae2dbb2c46cfd4?show_docid=5fae2dbb2c46cfd4"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  On Nov 22, 4:42 pm, &amp;quot;Dmitry A. Kazakov&amp;quot; &amp;lt;mail...@dmitry-kazakov.de&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Ah, I see what you mean. &lt;br&gt; In the process of trying to save the result of Open_Archive so that I &lt;br&gt; can test &lt;br&gt; if this problem still occurs, I&#39;ve run into another problem: &lt;br&gt; A : Archiver.Archiver_t; &lt;br&gt; O : constant Archiver.Archive_t := Archiver.Archive_t
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dmitry A. Kazakov</name>
  <email>mail...@dmitry-kazakov.de</email>
  </author>
  <updated>2009-11-22T16:42:40Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/e119b7cf17fbd2ec?show_docid=e119b7cf17fbd2ec</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/e119b7cf17fbd2ec?show_docid=e119b7cf17fbd2ec"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  The function Open_Archive returns a new object. In Main you call it and &lt;br&gt; then apply the function Stream to the result. Stream returns an access to &lt;br&gt; the component File of the temporal object created by Open_Archive. Then &lt;br&gt; this object is destroyed and a dangling pointer is assigned to S. When you &lt;br&gt; call Integer&#39;Inpit on S, it accesses a garbage.
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T16:27:59Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/b28f33e82117b092?show_docid=b28f33e82117b092</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/b28f33e82117b092?show_docid=b28f33e82117b092"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  On Nov 22, 4:25 pm, &amp;quot;Dmitry A. Kazakov&amp;quot; &amp;lt;mail...@dmitry-kazakov.de&amp;gt; &lt;br&gt; wrote: &lt;br&gt; Not sure which part of the code you&#39;re referring to here. &lt;br&gt; Regards, &lt;br&gt; xw
  </summary>
  </entry>
  <entry>
  <author>
  <name>Dmitry A. Kazakov</name>
  <email>mail...@dmitry-kazakov.de</email>
  </author>
  <updated>2009-11-22T16:25:36Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/a68ff3328832a749?show_docid=a68ff3328832a749</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/a68ff3328832a749?show_docid=a68ff3328832a749"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  The code is broken. It creates a temporal object and takes an access to its &lt;br&gt; component. The obtained pointer is dangling.
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T11:30:43Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/aac1fca487481f97?show_docid=aac1fca487481f97</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/aac1fca487481f97?show_docid=aac1fca487481f97"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  On Nov 22, 11:25 am, Georg Bauhaus &amp;lt;rm- &lt;br&gt; Yes, I actually always compile code with the following: &lt;br&gt; -O2 -g -fstack-check -gnatw.eHeFT -gnatVa -gnato -gnata &lt;br&gt; -gnatW8 -gnatiw -gnaty2aAbdefhiklnprStu &lt;br&gt; (Although without -O2 when actually writing code, though). &lt;br&gt; No change, unfortunately. &lt;br&gt; Regards, &lt;br&gt; xw
  </summary>
  </entry>
  <entry>
  <author>
  <name>Georg Bauhaus</name>
  <email>rm-host.bauh...@maps.futureapps.de</email>
  </author>
  <updated>2009-11-22T11:25:40Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/3adb0d0eef8024c6?show_docid=3adb0d0eef8024c6</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/3adb0d0eef8024c6?show_docid=3adb0d0eef8024c6"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  Do you get segmentation fault with GNAT run in Ada mode? &lt;br&gt; (Currently, this would mean options -gnato -fstack-check &lt;br&gt; and no -gnatp, I think.) &lt;br&gt; What happens if you name the access-to-String type used for &lt;br&gt; a component of Archive_t, i.e. something like &lt;br&gt; type String_a is access String; &lt;br&gt; subtype File_Name_a is String_a;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Stephen Leake</name>
  <email>stephen_le...@stephe-leake.org</email>
  </author>
  <updated>2009-11-22T07:51:23Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/d4f41945a8226943?show_docid=d4f41945a8226943</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/d4f41945a8226943?show_docid=d4f41945a8226943"/>
  <title type="text">Re: How do I debug/fix this</title>
  <summary type="html" xml:space="preserve">
  Or this one: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.stephe-leake.org/ada/opentoken.html&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Version 3.1a is now available as a Debian package in unstable.
  </summary>
  </entry>
  <entry>
  <author>
  <name>xorque</name>
  <email>xorquew...@googlemail.com</email>
  </author>
  <updated>2009-11-22T05:45:52Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/c9265b72315f3664?show_docid=c9265b72315f3664</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/0dbbbb21ed7f581b/c9265b72315f3664?show_docid=c9265b72315f3664"/>
  <title type="text">Re: Operation can be dispatching in only one type</title>
  <summary type="html" xml:space="preserve">
  I have to say I&#39;m quite impressed that my question started so much &lt;br&gt; discussion. &lt;br&gt; For this (minor) project, I tried a multitude of different approaches &lt;br&gt; and ended up &lt;br&gt; with one that appeared safe, right until it ended up causing GNAT to &lt;br&gt; have some &lt;br&gt; sort of heart attack: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42140&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>John B. Matthews</name>
  <email>nos...@nospam.invalid</email>
  </author>
  <updated>2009-11-21T17:24:51Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/fab73e623c8f46e5?show_docid=fab73e623c8f46e5</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/fab73e623c8f46e5?show_docid=fab73e623c8f46e5"/>
  <title type="text">Re: How do I debug/fix this</title>
  <summary type="html" xml:space="preserve">
  In article &lt;br&gt; &amp;lt;b3ac62eb-a230-45b5-9220-960f7 facc...@r5g2000yqb.googlegroup s.com&amp;gt;, &lt;br&gt; For reference, the OP might also like to see this other parser: &lt;br&gt; &amp;lt;&lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://code.google.com/p/stasiscl/&quot;&gt;[link]&lt;/a&gt;&amp;gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Gautier write-only</name>
  <email>gautier_niou...@hotmail.com</email>
  </author>
  <updated>2009-11-21T15:46:45Z</updated>
  <id>http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/44fe75b3a2ad4dfd?show_docid=44fe75b3a2ad4dfd</id>
  <link href="http://groups.google.com.au/group/comp.lang.ada/browse_thread/thread/8645ae05a5441aad/44fe75b3a2ad4dfd?show_docid=44fe75b3a2ad4dfd"/>
  <title type="text">Re: How do I debug/fix this</title>
  <summary type="html" xml:space="preserve">
  If the syntax is not trivial you may want to build a parser, e.g. by &lt;br&gt; using ayacc. &lt;br&gt; I did it to read another kind of file in another game - works fine... &lt;br&gt; Gautier
  </summary>
  </entry>
</feed>
