Bug 15917 - Bug box in Gigi, code=103, on legal program
Summary: Bug box in Gigi, code=103, on legal program
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: 5.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-06-10 21:46 UTC by Ludovic Brenta
Modified: 2015-12-05 10:20 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-10-06 11:57:20


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludovic Brenta 2004-06-10 21:46:31 UTC
procedure Test_247564 is

   package pak2 is
      type t2(b2: boolean) is private;
   private
      type t2(b2: boolean) is null record;
   end pak2;

   package pak1 is
      type T1(b1 : boolean) is private;
   private
      type T1(b1 : boolean) is new pak2.t2(b1);
   end pak1;

   x: pak1.t1(false);
   b: boolean;
begin
   b := x.b1;
end Test_247564;

$ gcc-3.4 -q -O1 test_247564
+===========================GNAT BUG DETECTED==============================+
| 3.4.0 (Debian) (i486-pc-linux-gnu) Gigi abort, Code=103                  |
| Error detected at test_247564.adb:18:9                                   |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc-3.4 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.

test_247564.adb

compilation abandoned
gnatmake: "test_247564.adb" compilation error
Comment 1 Andrew Pinski 2004-10-12 04:07:35 UTC
Confirmed on the mainline:
+===========================GNAT BUG 
DETECTED==============================+
| 4.0.0 20041008 (experimental) (powerpc-apple-darwin7.4.1) GCC error:     |
| in gnat_to_gnu_entity, at /ada/decl.c:466                                |
| Error detected at test_247564.adb:18:9                                   |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==============================================================
============+
Comment 2 Samuel Tardieu 2007-11-28 21:34:21 UTC
Still present on SVN trunk

+===========================GNAT BUG DETECTED==============================+
| 4.3.0 20071127 (experimental) (i686-pc-linux-gnu) GCC error:             |
| in gnat_to_gnu_entity, at ada/decl.c:491                                 |
| Error detected at test_247564.adb:18:9                                   |
Comment 3 Samuel Tardieu 2007-12-13 14:16:28 UTC
+===========================GNAT BUG DETECTED==============================+
| 4.3.0 20071213 (experimental) (i686-pc-linux-gnu) GCC error:             |
| in gnat_to_gnu_entity, at ada/decl.c:491                                 |
| Error detected at test_247564.adb:18:9                                   |
Comment 4 Samuel Tardieu 2009-10-06 11:57:20 UTC
+===========================GNAT BUG DETECTED==============================+
| 4.5.0 20091003 (experimental) (i686-pc-linux-gnu) GCC error:             |
| in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:544                   |
| Error detected at test_247564.adb:18:9                                   |
Comment 5 Nicolas Boulenguez 2011-08-31 10:25:00 UTC
+===========================GNAT BUG DETECTED==============================+
| 4.6.1 (x86_64-pc-linux-gnu) GCC error:                                   |
| in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:599                   |
| Error detected at test_70.adb:18:9                                       |
Comment 6 Nicolas Boulenguez 2014-02-27 14:37:36 UTC
4.9.0 20140218 (experimental) [trunk rev 207856] (x86_64-linux-gnu) GCC error
in gnat_to_gnu_entity, at ada/gcc-interface/decl.c:568
Error detected at test_70.adb:18:9
Comment 7 Eric Botcazou 2015-12-05 10:20:19 UTC
Fixed in GCC 5.