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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,31b3d1f7b3516357 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Cannot initialize entities of limited type? Date: Tue, 16 Jan 2007 09:35:24 +0100 Organization: CERN News Message-ID: References: NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: cernne03.cern.ch 1168936524 29626 137.138.37.241 (16 Jan 2007 08:35:24 GMT) X-Complaints-To: news@@cern.ch NNTP-Posting-Date: Tue, 16 Jan 2007 08:35:24 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (X11/20061220) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:8157 Date: 2007-01-16T09:35:24+01:00 List-Id: Jeffrey Carter wrote: >> $ gnatmake hello >> gcc -c hello.adb >> hello.adb:17:16: cannot initialize entities of limited type >> gnatmake: "hello.adb" compilation error > > gnatmake -gnat05 hello Well, there are so many similar replies that I think I will clarify this issue. I'm using -gnat05 option all the time, no matter what. To be more precise, I'm using this sequence of options: -gnat05 -gnatv -gnatVa -gnatwe -gnatwa -gnatwd -gnatwh -gnato -gnata -gnaty3abcefhiklM100noprux -fstack-check It just looks like my compiler is half-way Ada2005 and when compiling with -gnatv it presents itself as: GNAT GPL 2005 (20050729) It lacks many Ada2005 features, not only construction functions for limited objects. Some other that I came across are the overriding keyword and raise with. There are certainly others as well. -- Maciej Sobczak : http://www.msobczak.com/ Programming : http://www.msobczak.com/prog/