GNAT 4.4.0 (20080411) crashes when trying to override an inherited primitive operation by the renaming of a predefined one.
package P1 is type T1 is tagged null record; function Something (X, Y : T1) return Boolean; type T2 is new T1 with null record; function Something (X, Y : T2) return Boolean renames "="; end P1; % gcc -c p1.ads +===========================GNAT BUG DETECTED==============================+ | 4.4.0 20080411 (experimental) (x86_64-unknown-linux-gnu) Program_Error exp_disp.adb:6756 explicit raise| | Error detected at p1.ads:5:50 | | 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 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. p1.ads /local/x86_64-unknown-linux/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/adainclude/s-parame.ads [incidentally, the path of s-parame.ads is bogus, it lacks a /home/sam prefix] -- Summary: Overriding primitive with a predefined operation renaming Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sam at gcc dot gnu dot org GCC host triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35920