From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2e4612f5662e062e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-23 13:10:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: ANH_VO@udlp.com Newsgroups: comp.lang.ada Subject: Possible Bug, Need Second Opinion Date: Sun, 23 Sep 2001 13:01:41 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1001275804 38351 137.194.161.2 (23 Sep 2001 20:10:04 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 23 Sep 2001 20:10:04 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-Description: cc:Mail note part Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:13272 Date: 2001-09-23T13:01:41-05:00 I am nearly 100% certain that the codes below should compile fine. But, I would like to have second opinion possibly more before reporting it. with Interfaces; package Global is type Size_T is new Interfaces.Unsigned_32; end Global; with Global; with Interfaces.C.Pointers; package Index_Rejection is use Global; type Data_Array is array (Size_T range <>) of aliased Integer; package Data_Pointers is new Interfaces.C.Pointers (Index => Size_T, Element => Integer, Element_Array => Data_Array, Default_Terminator => 0); end Index_Rejection; However, when compiled using GNAT 3.13p on Windows 95, the compiler complains with an error message of 'index_rejection.ads:14:32: index types of actual do not match those of formal "Element_Array"'. On the other hand, if Size_T on lines 8 and 12 is fully qualified as shown below, the compiler was happy. with Global; with Interfaces.C.Pointers; package Index_Rejection is use Global; type Data_Array is array (Global.Size_T range <>) of aliased Integer; package Data_Pointers is new Interfaces.C.Pointers (Index => Global.Size_T, Element => Integer, Element_Array => Data_Array, Default_Terminator => 0); end Index_Rejection; Am I correct to conclude that there is a bug in the compiler? Anh Vo