public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/36554]  New: [4.4 regression] verify_flow_info ICE can not throw but has EH edges
@ 2008-06-17 17:46 laurent at guerby dot net
  2008-06-17 17:49 ` [Bug middle-end/36554] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: laurent at guerby dot net @ 2008-06-17 17:46 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-07-31  0:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-17 17:46 [Bug ada/36554] New: [4.4 regression] verify_flow_info ICE can not throw but has EH edges laurent at guerby dot net
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

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