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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a8567eadfdf78b98 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-15 22:35:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Why does this happen? Date: 16 Oct 2002 06:36:33 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: <3DAC92DB.4090307@linux.nu> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1034746555 4630 62.49.19.209 (16 Oct 2002 05:35:55 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 16 Oct 2002 05:35:55 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:29828 Date: 2002-10-16T06:36:33+01:00 List-Id: svesse writes: > Can someone explain why this would be illegal ? I suspect it isn't illegal, rather looks like a compiler bug; 3.15a1 gives similar results to yours (only 4 lines of complaint!) whereas GCC-3.2 (and 3.1, 3.3) give bombs: smaug[21]$ gnatgcc -c test.adb +===========================GNAT BUG DETECTED==============================+ | 3.2 20020814 (release) (i686-pc-linux-gnu) GCC error: | | Internal compiler error in make_decl_rtl, at varasm.c:835 | | Error detected at test.adb:14:13 | | Please submit a bug report, see http://gcc.gnu.org/bugs.html. | | Include the entire contents of this bug box in the report. | | Include the exact gcc or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+ Please include these source files with error report test.adb test.ads compilation abandoned I think this is worth a PR, shall I do it?