public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "laurent at guerby dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/36554]  New: [4.4 regression] verify_flow_info ICE can not throw but has EH edges
Date: Tue, 17 Jun 2008 17:46:00 -0000	[thread overview]
Message-ID: <bug-36554-7210@http.gcc.gnu.org/bugzilla/> (raw)

This doesn't ICE with gcc 4.3.1, may be by luck.

$ cat pt.ads
package PT is

   function S (V : in Long_Float) return String;

end PT;
$ cat pt.adb
package body Pt is

   function Long_Float_Is_Valid (X : in Long_Float) return Boolean is
      Is_Nan : constant Boolean := X /= X;
      Is_P_Inf : constant Boolean := X > Long_Float'Last;
      Is_M_Inf : constant Boolean := X < Long_Float'First;
      Is_Invalid : constant Boolean := Is_Nan or Is_P_Inf or Is_M_Inf;
   begin
      return not Is_Invalid;
   end Long_Float_Is_Valid;

   function S (V : in Long_Float) return String is
   begin
      if not Long_Float_Is_Valid (V) then
         return "INVALID";
      else
         return "OK";
      end if;
   exception
      when others =>
         return "ERROR";
   end S;

end Pt;
$ gcc -c -O2 pt.adb
pt.adb: In function 'Pt.S':
pt.adb:12: error: BB 2 can not throw but has EH edges
pt.adb:12: error: BB 3 can not throw but has EH edges
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080617 (experimental) [trunk revision 136861]
(x86_64-unknown-linux-gnu) GCC error:|
| verify_flow_info failed                                                  |
| Error detected around pt.adb:12                                          |


-- 
           Summary: [4.4 regression] verify_flow_info ICE can not throw but
                    has EH edges
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent at guerby dot net
  GCC host triplet: x86_64-linux


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


             reply	other threads:[~2008-06-17 17:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 17:46 laurent at guerby dot net [this message]
2008-06-17 17:49 ` [Bug middle-end/36554] " pinskia at gcc dot gnu dot org
2008-06-25 12:13 ` rguenth at gcc dot gnu dot org
2008-06-25 20:05 ` laurent at guerby dot net
2008-06-25 21:11 ` ebotcazou at gcc dot gnu dot org
2008-06-26 11:03 ` ebotcazou at gcc dot gnu dot org
2008-06-26 11:20 ` rguenth at gcc dot gnu dot org
2008-07-02 20:20 ` ebotcazou at gcc dot gnu dot org
2008-07-14 21:50 ` ebotcazou at gcc dot gnu dot org
2008-07-18 16:52 ` rguenth at gcc dot gnu dot org
2008-07-30 23:41 ` [Bug ada/36554] " ebotcazou at gcc dot gnu dot org
2008-07-30 23:57 ` ebotcazou at gcc dot gnu dot org
2008-07-31  0:01 ` ebotcazou at gcc dot gnu dot 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-36554-7210@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).