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: a07f3367d7,3de3dde1d40ceb49 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.224.215.194 with SMTP id hf2mr34133203qab.0.1367828740186; Mon, 06 May 2013 01:25:40 -0700 (PDT) Path: y6ni13884qax.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: How to flag implicit conversions? Date: Mon, 06 May 2013 10:25:23 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: 01/BPNoqk8s7XmPzrYdoUA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-06T10:25:23+02:00 List-Id: Le Mon, 06 May 2013 07:59:42 +0200, J-P. Rosen a =C3=A9= crit: > Le 06/05/2013 03:23, Yannick Duch=C3=AAne (Hibou57) a =C3=A9crit : >> I can't retrieve that in GNAT warning options. Some one see what this= >> option is? Or may be that was with AdaControl and not GNAT? > AdaControl has a rule (simplifiable_expressions (conversion)) to check= > conversions of literals that are not necessary. Yes, I remember this one. But that must not be the option I believe I've= = seen somewhere, as `simplifiable_expressions` is about the opposite here= : = it would flag an universal expression to which is applied an explicit ty= pe = conversion when it do not serves an ambiguity resolution. Honestly, I now believe the error was rather mine, as I could not = reproduce the case, and checked even with 32 bits GNAT, `root_integer` i= s = 64 bits width, according to the System package. Or else, may be this was= = the effect of an operator which was visible/invisible due to some `use = type` added or missing (I've changed so much things since). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity