public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "orion at cora dot nwra.com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/56178] New: [4.8 Regression] Conversion of Long_Float to Integer triggers CONSTRAINT_ERROR overflow check failed
Date: Fri, 01 Feb 2013 18:32:00 -0000	[thread overview]
Message-ID: <bug-56178-4@http.gcc.gnu.org/bugzilla/> (raw)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56178

             Bug #: 56178
           Summary: [4.8 Regression] Conversion of Long_Float to Integer
                    triggers CONSTRAINT_ERROR overflow check failed
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: orion@cora.nwra.com


Description of problem:

$ cat test_overflow.adb
procedure Test_Overflow is
    r : Integer;
    r1 : Long_Float := 0.3;
begin
    r := Integer(r1);
end Test_Overflow;
$ gnatmake test_overflow.adb 
gcc -c test_overflow.adb
gnatbind -x test_overflow.ali
gnatlink test_overflow.ali
$ ./test_overflow 

raised CONSTRAINT_ERROR : test_overflow.adb:5 overflow check failed

gcc-4.8.0-0.7.fc19.x86_64


             reply	other threads:[~2013-02-01 18:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-01 18:32 orion at cora dot nwra.com [this message]
2013-02-04  7:33 ` [Bug ada/56178] " jakub at gcc dot gnu.org
2013-02-04  9:16 ` jakub at gcc dot gnu.org
2013-02-04 10:04 ` rguenth at gcc dot gnu.org
2013-02-04 10:42 ` ebotcazou at gcc dot gnu.org
2013-02-05 21:42 ` [Bug ada/56178] [4.8 Regression] Miscompilation of Ada front-end with profiled bootstrap ebotcazou at gcc dot gnu.org
2013-02-06 17:25 ` [Bug rtl-optimization/56178] " ebotcazou at gcc dot gnu.org
2013-02-07  8:08 ` ebotcazou at gcc dot gnu.org
2013-02-07  8:28 ` ebotcazou at gcc dot gnu.org

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-56178-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).