John had mentioned this bug to me on irc... after looking at this a bit more, it looks like someone else had reported this to the gcc folks and they determined it's not a bug.
See PR#3747 at http://gcc.gnu.org/cgi-bin/gnatsweb.pl The fix is to not use unsigned int as a type in an overridden [] operator. changing the [] operator to have type int works. John, can you verify this fixes your problem? It does seem to fix it in your test case (modulo adding a definition for the destructor) randolph -- @..@ http://www.TauSq.org/ (----) ( >__< ) ^^ ~~ ^^