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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b0a828f417615ded X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!p69g2000hsa.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: Compiler Bug Date: Tue, 4 Dec 2007 14:25:24 -0800 (PST) Organization: http://groups.google.com Message-ID: <8a6283ea-be44-46d7-a2f1-a6d626266b58@p69g2000hsa.googlegroups.com> References: <9f4bc0eb-d44a-43f9-83bd-dd07fa8538f2@i12g2000prf.googlegroups.com> NNTP-Posting-Host: 90.203.146.52 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1196807124 1711 127.0.0.1 (4 Dec 2007 22:25:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 4 Dec 2007 22:25:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p69g2000hsa.googlegroups.com; posting-host=90.203.146.52; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.10) Gecko/20061201 Firefox/2.0.0.10 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Content-Disposition: inline Xref: g2news1.google.com comp.lang.ada:18708 Date: 2007-12-04T14:25:24-08:00 List-Id: On Dec 4, 9:58 pm, REH wrote: > I have an issue that my compiler vendor is trying to tell me is not a > bug. I have two functions. They both have a local variable of the > same name. One calls the other (which is inlined). The compiler > treats the variable in the caller as if it is of the same type as the > one in the callee. Because of this, we get a constraint_error > exception. The problem goes away when the pragma inline is removed. > The vendor is trying to tell me that this behavior is acceptable and > correct. I do not believe that it is. Please tell me who it right. > > REH Which compiler? Have you tried it in GNAT? Can you post the code? Thanks, Luke.