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,ec21c3c7cdc7ff3e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!v46g2000cwv.googlegroups.com!not-for-mail From: "Ludovic Brenta" Newsgroups: comp.lang.ada Subject: Re: private types Date: 14 Mar 2006 00:25:31 -0800 Organization: http://groups.google.com Message-ID: <1142324731.634280.90600@v46g2000cwv.googlegroups.com> References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> NNTP-Posting-Host: 212.190.145.10 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1142324762 17879 127.0.0.1 (14 Mar 2006 08:26:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 14 Mar 2006 08:26:02 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; SunOS sun4u; fr-FR; rv:1.6) Gecko/20040116,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 SEVPXS01 Complaints-To: groups-abuse@google.com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=212.190.145.10; posting-account=ZjNXewwAAADyBPkwI57_UcX8yKfXWOss Xref: g2news1.google.com comp.lang.ada:3351 Date: 2006-03-14T00:25:31-08:00 List-Id: Brian May a =E9crit : > In fact, by default (at least last time I checked), gcc (or was that > gnat) doesn't check the validity of parameters to functions if the > type matches, even though the type hasn't been initialised and may > just happen to contain an illegal value. That is true, you need to pass -gnatVi -gnatVm to enable these checks. --=20 Ludovic Brenta.