(Debian bug #284651) with ada.finalization; package Test_137 is type T1 is new ada.finalization.controlled with null record; procedure p(x: access T1); end Test_137; package body Test_137 is procedure p(x: access T1) is begin null; end p; y: T1; begin p(new T1'(y)); end Test_137; With gnat 3.15p-12: +===========================GNAT BUG DETECTED==============================+ | 3.15p (20020523) (i486-pc-linux-gnu) Assert_Failure namet.adb:581 | | No source file position information available | With gcc-3.4 3.4.2-2: +===========================GNAT BUG DETECTED==============================+ | 3.4.2 (Debian 3.4.2-2) (i486-pc-linux-gnu) Assert_Failure namet.adb:630 | | Error detected at test_137.adb:9:6 |
Confirmed on the mainline: +===========================GNAT BUG DETECTED==============================+ | 4.0.0 20041204 (experimental) (powerpc-apple-darwin7.6.0) GCC error: | | in gnat_to_gnu_entity, at ada/decl.c:267 | | Error detected at test_137.adb:9:6 | | 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). | +============================================================== ============+
Compiles cleanly on trunk