public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "alexis at m2osw dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-51691-4@http.gcc.gnu.org/bugzilla/> (raw)

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


                 reply	other threads:[~2011-12-28  8:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-51691-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).