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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,334f9012742e58fc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!u-picardie.fr!news.ecp.fr!aioe.org!not-for-mail From: anon@anon.org Newsgroups: comp.lang.ada Subject: Re: Gnat GPL 2010 available soon Date: Sat, 26 Jun 2010 21:04:49 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <2010061621145016807-sjs@essexacuk> <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: DeK2VxwyEi3DLoK/kxrhqw.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news2.google.com comp.lang.ada:12910 Date: 2010-06-26T21:04:49+00:00 List-Id: In <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com>, "lekktu@gmail.com" writes: >Well, it hasn't been hard to find the first bug. > >-------------------------------------------------------------------------------- >function Validate (Dir : in String) return String is >begin > return (if Dir (Dir'Last) = '\' then Dir else Dir & '\'); >end Validate; >-------------------------------------------------------------------------------- > >C:\test\> gnatmake -gnat12 validate.adb >gcc -c -gnat12 validate.adb >+===========================GNAT BUG >DETECTED==============================+ >| GPL 2010 (20100603) (i686-pc-mingw32) GCC >error: | >| in mostly_copy_tree_r, at gimplify.c: >893 | >| Error detected around C:/gnat/lib/gcc/i686-pc-mingw32/4.3.6/ >adainclude/s-stoele.ads:65| >| Please submit a bug report by email to >report@adacore.com. | >| GAP members can alternatively use GNAT >Tracker: | >| http://www.adacore.com/ section 'send a >report'. | >| See gnatinfo.txt for full info on procedure for submitting >bugs. | >| Use a subject line meaningful to you and us to track the >bug. | >| Include the entire contents of this bug box in the >report. | >| Include the exact gcc or gnatmake command that you >entered. | >| Also include sources listed below in gnatchop >format | >| (concatenated together with no headers between >files). | >| Use plain ASCII or MIME >attachment. | >+========================================================================== >+ > >Please include these source files with error report >Note that list may not be accurate in some cases, >so please double check that the problem can still >be reproduced with the set of files listed. >Consider also -gnatd.n switch (see debug.adb). > >validate.adb > >compilation abandoned >gnatmake: "validate.adb" compilation error > > >I'll submit a bug report. Now, to compile the Ada system this statement type must work because it is embeded in a number of locations in the Ada.Text_IO.adb and other Ada system packages. So, first, try compiling without the "-gnat12" switch. Second, try the routine without the concatenation operator "&" or try to return a static string or a substring. Then again this statement may be limited to numerical, characters type values only. If that does not work try copying "a-textio.ad*" to a local temp dir and compile it by: gcc -c -gnatpg a-textio.adb You should get no errors, only a warning that your states your recompiling the a system package. Last, if you have or still have GNAT 2009 try compiling using 2009: gnatmake ....