Bug#749574: gnat-4.9: Gnatlink fails with CONSTRAINT_ERROR in gnatlink.adb

2014-05-29 Thread Ludovic Brenta
I have been able to fix this problem by patching gnatlink.adb; patch attached. I am puzzled by your report that this bug is not triggered in the home-built upstream gnat-4.9 snapshot (gcc-4.9-20140112). Could you please try the following in the directory containing mai_read_config.adb: cat

Bug#749574: gnat-4.9: Gnatlink fails with CONSTRAINT_ERROR in gnatlink.adb

2014-05-29 Thread Ludovic Brenta
I have found the reason why upstream gnatlink appears to work where Debian's gnatlink fails. Consider this program: with Ada.Text_IO; procedure A is type String_Access is access String; G : constant String (3 .. 5) := 345; H : constant String_Access := new String'(G); begin if G (1

Bug#749574: gnat-4.9: Gnatlink fails with CONSTRAINT_ERROR in gnatlink.adb

2014-05-28 Thread brian_99
Source: gnat-4.9 Severity: normal Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? Use of the -D option to gnatmake, to locate (most) intermediate files in a separate directory. This worked up to a certain