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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,12283be683f6446b X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Elaborate compile-time error messages (was: GNAT Stream Read ...) Date: 1999/01/13 Message-ID: #1/1 X-Deja-AN: 432041326 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <76tsgd$s0o1@svlss.lmms.lmco.com> <76uv4j$njr$1@nnrp1.dejanews.com> <1999Jan6.072356.1@eisner> <369366F1.67C06BF0@pwfl.com> <77cprt$d90$1@news-hrz.uni-duisburg.de> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 916212184 nnrp-10:23692 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada Date: 1999-01-13T00:00:00+00:00 List-Id: sb463ba@d250-hrz.uni-duisburg.de (Georg Bauhaus) writes: > QUESTION 1: > Why does GNAT behave so very differently when things > are spelled differently? (Try compiling with "emsg" > replacing "Emsg" in the above examples.) I don't know when 3.11p is coming out, but 3.10p handles these cases identically: pogner[17]$ gcc -c -gnatc -gnatv emsg.ads GNAT 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc. Checking: emsg.ads (source file time stamp: 1999-01-13 06:45:32) 2. n : integer := Private; | >>> reserved word "private" cannot be used as identifier 3 lines: 1 error and pogner[19]$ gcc -c -gnatc -gnatv emsg.ads GNAT 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc. Checking: emsg.ads (source file time stamp: 1999-01-13 06:48:50) 2. n : integer := private; | >>> reserved word "private" cannot be used as identifier 3 lines: 1 error also pogner[20]$ gnatf -v -ds emsg.ads GNATF 3.10p (970814) Copyright 1992-1997 Free Software Foundation, Inc. Checking: emsg.ads (source file time stamp: 1999-01-13 06:48:50) Source recreated from tree for emsg (spec) ------------------------------------------ package emsg is n : integer := private; end emsg; 2. n : integer := private; | >>> reserved word "private" cannot be used as identifier 3 lines: 1 error