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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd3da8c60e8be3be,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-07 15:30:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail Subject: What's wrong with this program? From: Allison Greene Newsgroups: comp.lang.ada Reply-To: wrg@acm.org Message-ID: <070620021804210406%argreene@usanospam.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit Mail-Copies-To: nobody User-Agent: Thoth/1.4.2 (Carbon/OS X) Date: Fri, 07 Jun 2002 22:04:23 GMT NNTP-Posting-Host: 24.25.5.21 X-Complaints-To: abuse@rr.com X-Trace: twister.southeast.rr.com 1023487463 24.25.5.21 (Fri, 07 Jun 2002 18:04:23 EDT) NNTP-Posting-Date: Fri, 07 Jun 2002 18:04:23 EDT Organization: Road Runner - NC Xref: archiver1.google.com comp.lang.ada:25479 Date: 2002-06-07T22:04:23+00:00 List-Id: procedure Test_Discriminant is type Base is tagged null record; type Tower is new Base with record I : Integer; end record; Instance: Tower (I => 5); begin null; end Test_Discriminant; Result of compiling with GNAT: [localhost:~/lexicon] wrg% gnatmake -v test_discriminant.adb GNATMAKE 5.00w (20010924) Copyright 1995-2001 Free Software Foundation, Inc. "test_discriminant.ali" being checked ... -> "test_discriminant.ali" missing. gcc -c test_discriminant.adb test_discriminant.adb:13:20: invalid constraint: type has no discriminant End of compilation gnatmake: "test_discriminant.adb" compilation error [localhost:~/lexicon] wrg% Q: What discriminant? What am I doing wrong here? -- -- Bill Greene