------- Comment #3 from sam at gcc dot gnu dot org 2007-11-30 09:51 ------- As a workaround, it looks like you can use an explicit dereference instead of an implicit one for the Set_Central_Widget call:
Main_Windows.Impl.Main_Window_Impl (Result.all)'Access.Set_Central_Widget (Main_Windows.Impl.Main_Window_Impl (Result.all).Text_Edit); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34290