[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#783877: gnat-4.9: Bug box on raise in Dynamic_Predicate



Package: gnat-4.9
Version: 4.9.2-1
Severity: normal

gcc-4.9 -c -gnata -gnato -fstack-check -gnat12 -gnatyO -gnatv -gnati1 -gnatf -gnatn array_subtypes.ads

GNAT 4.9.2
Copyright 1992-2014, Free Software Foundation, Inc.
+===========================GNAT BUG DETECTED==============================+
| 4.9.2 (x86_64-linux-gnu) GCC error:                                      |
| in save_gnu_tree, at ada/gcc-interface/utils.c:294                       |
| Error detected at array_subtypes.ads:5:17                                |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc-4.9 or gnatmake command that you entered.          |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

array_subtypes.ads


Compiling: array_subtypes.ads (source file time stamp: 2015-04-30 18:07:17)
 10 lines: No errors
compilation abandoned
gnatmake: "array_subtypes.ads" compilation error

package Array_Subtypes is
   subtype Digit_Character is Character range '0' .. '9';
   subtype Digit_String is String
     with Dynamic_Predicate
            => (for all C of Digit_String => C in Digit_Character
                or else raise Constraint_Error
                          with "'" & Digit_String & "' contains non-digit " &
                               "characters.");
end Array_Subtypes;

The bug also exists in GNAT GPL 2014, but not in the internal Adacore
GNAT wavefront release.  (It has been reported to
<report@adacore.com>.)

-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fo_FO.ISO-8859-1, LC_CTYPE=fo_FO.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages gnat-4.9 depends on:
ii  gcc-4.9            4.9.2-10
ii  gnat-4.9-base      4.9.2-1
ii  libc6              2.19-18
ii  libc6-dev          2.19-18
ii  libcloog-isl4      0.18.2-1+b2
ii  libgcc1            1:4.9.2-10
ii  libgmp10           2:6.0.0+dfsg-6
ii  libgnat-4.9        4.9.2-1
ii  libgnatprj4.9      4.9.2-1
ii  libgnatvsn4.9      4.9.2-1
ii  libisl10           0.12.2-2
ii  libmpc3            1.0.2-1
ii  libmpfr4           3.1.2-2
ii  multiarch-support  2.19-18
ii  zlib1g             1:1.2.8.dfsg-2+b1

gnat-4.9 recommends no packages.

Versions of packages gnat-4.9 suggests:
ii  ada-reference-manual-2012  1:2012.2-3
ii  gnat-4.9-doc               4.9.1-3
pn  gnat-4.9-sjlj              <none>

-- no debconf information


Reply to: