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,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.13.233 with SMTP id k9mr15194213wic.1.1367803503820; Sun, 05 May 2013 18:25:03 -0700 (PDT) Path: p18ni74104wiv.0!nntp.google.com!fu-berlin.de!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: How to flag implicit conversions? Date: Mon, 06 May 2013 03:23:23 +0200 Organization: Ada @ Home Message-ID: 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-06T03:23:23+02:00 List-Id: Hi once again, Yesterday I encountered an issue with a thankfully range=E2=80=91check=E2= =80=91enabled = compiled application, involving implicit conversion from = universal_integer. This occurred in an expression as an argument to a = function, and the range error disappeared when I added a type = qualification. To avoid any similar future case, I would like to flag th= is = kind of implicit conversion (I know it's supposed to be safe, but seems = it = was not safe with me, or else that was a GNAT bug or an error of mine = elsewhere I missed). I feel to remember I knew a way to make the compile= r = flag implicit conversions. I don't want it with initializations, only = within expressions. 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? I really can't remember how I did make it flagged in the paste. -- = =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