http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49164
Summary: GNAT BUG on access procedure parameter in protected type entry Product: gcc Version: 4.4.6 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: sou...@stbuehler.de $ gnatmake gnatbug gcc-4.4 -c gnatbug.adb +===========================GNAT BUG DETECTED==============================+ | 4.4.6 (x86_64-pc-linux-gnu) Assert_Failure sem_ch3.adb:1063 | | Error detected at gnatbug.adb:3:17 | | 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.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. gnatbug.adb gnatbug.ads compilation abandoned gnatmake: "gnatbug.adb" compilation error package body Gnatbug is protected body X is entry Foo (Bar : access procedure) when Member = 0 is begin Bar.all; end; end X; end Gnatbug; package Gnatbug is protected type X is entry Foo (Bar : access procedure); private Member : Integer := 0; end X; end Gnatbug;