This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/21242] ACATS wrong array copy code c52102b c52102d (works with -fno-tree-dce)


------- Additional Comments From laurent at guerby dot net  2005-06-19 11:46 -------
Here is a reduced test case, works at -0O, fails at -O1 works at -O1
-fno-tree-dce. First .tNN to be different is p.adb.t24.forwprop1.

--
procedure P is
   function F return Integer is
   begin
      return 1;
   end F;
   A : array (-F .. 1) of Boolean;
begin
   A := (False,True,False);
   A(-1 .. 0)  :=  A (0 .. 1);
   if A /= (True, False, False) then
      raise Program_Error;
   end if;
end P;


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]