SomefunctionReturningPointer is actually named Focus. There is also a procedure of the same name in the package; if the procedure is commented out, the crash does not happen. The test case is the best description of the problem. It is short enough to be easily comprehensible.
-- Summary: [Ada] crash passing SomeFunctionReturningPointer.all as function argument Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jdgressett at amli-denton dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33420