------- Comment #3 from chevallier_sylvain at yahoo dot fr 2006-11-27 17:21 ------- Okay, I have a *more* compact version of this bug :
$ cat example.ads package Example is type I is tagged record N : Integer; end record; private procedure P_Private (X : in out I); end Example; $ cat example-generic_child.ads generic type EI is new I with private; package Example.Generic_Child is procedure P_Private (X : in out EI); end Example.Generic_Child; $ gcc -c example-generic_child.ads +===========================GNAT BUG DETECTED==============================+ | 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) (i486-pc-linux-gnu) | | Assert_Failure sem_ch7.adb:1313 | | Error detected at example-generic_child.ads:3:1 | | 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.1 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. list may be incomplete compilation abandoned It seems gcc dislikes the fact that the "public" procedure Example.Generic_Child.P_Private share the same name that the private procedure Example.P_Private. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29958