From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12511 invoked by alias); 28 Dec 2011 08:36:50 -0000 Received: (qmail 11972 invoked by uid 22791); 28 Dec 2011 08:36:43 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Dec 2011 08:36:29 +0000 From: "alexis at m2osw dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/51691] New: Cast of an array with type generates a "please file bug" message (See below) Date: Wed, 28 Dec 2011 09:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: alexis at m2osw dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-12/txt/msg02681.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51691 Bug #: 51691 Summary: Cast of an array with type generates a "please file bug" message (See below) Classification: Unclassified Product: gcc Version: 4.4.5 Status: UNCONFIRMED Severity: minor Priority: P3 Component: ada AssignedTo: unassigned@gcc.gnu.org ReportedBy: alexis@m2osw.com Created attachment 26193 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26193 Case Folding implementation for my own Ada compiler ------------------------------------------------------------------- prompt> gnatmake case_folding gcc-4.4 -c case_folding.adb +===========================GNAT BUG DETECTED==============================+ | 4.4.5 (x86_64-pc-linux-gnu) Assert_Failure sinfo.adb:880 | | Error detected at case_folding.adb:401:32 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact gcc-4.4 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 Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. case_folding.adb case_folding.adb:401:53: missing ")" compilation abandoned gnatmake: "case_folding.adb" compilation error ------------------------------------------------------------------- As I type fast, the error came from this line: output_line(1 .. indent) := string(1 .. indent => ' '); which includes an invalid cast, the proper line should be (without "string"): output_line(1 .. indent) := (1 .. indent => ' '); There are still problems on line 403 which I left in case the bug would not be reported without that other error (unlikely though.) Just in case, I'm on Ubuntu 11.04. I use the stock version of Ada. ------------------------------------------------------------------- More info about my project can be found here: http://aada.m2osw.com/compiler