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,a88e582de42cdc9b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Bug in Ada (SuSe 10.2) ? Date: Tue, 26 Feb 2008 20:05:26 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <0_mdna0iHpIsCifaRVnzvQA@telenor.com> <3a281192-2744-4110-9fc1-90c155c9436b@d4g2000prg.googlegroups.com> <48277611-402f-4622-be05-6edddf6dd56a@o10g2000hsf.googlegroups.com> <624tcvF21i3nvU1@mid.individual.net> <2630d99b-1578-4d79-ac9c-64c00c203b77@e60g2000hsh.googlegroups.com> <69019a65-736e-48ee-bd9f-4c29cd7fc88f@72g2000hsu.googlegroups.com> <48a0a0c4-7b79-42dc-b541-7a68693bdd4c@e41g2000hsc.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1204074335 6634 192.74.137.71 (27 Feb 2008 01:05:35 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 27 Feb 2008 01:05:35 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:aociDQK1xFLvXRJphm8/f6eys/I= Xref: g2news1.google.com comp.lang.ada:20114 Date: 2008-02-26T20:05:26-05:00 List-Id: billjones6789@yahoo.com writes: > To bring it back on topic, an unsuspecting Ada programmer will be > quite surprised to see overflow checks and stack checks not performed > by default in some cases,... Probably true. At the time this decision was made, I argued in favor of having all checks on by default. But I understand the counterargument... Anyway, changing this default at this point is a bad idea. It would only create more confusion. >...and will be equally surprised to see > accessibility checks not performed by default in some cases. But where did this idea come from? All run-time accessibility checks are enabled by default in every Ada compiler I know of, including GNAT. Maybe I missed it -- did you or somebody else post an example of a missing accessibility check? If so, it must be a compiler bug, rather than intended default behavior. >...For > overflow and stack checks, there is a rather simple solution involving > specifying default flags in the project file. But for accessibility > checks, I do not know of any similar solution. As far as I know, there's no need to use flags to turn on accessibility checks -- they're on by default. You can turn them off with flags and/or pragmas. - Bob