http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60163
--- Comment #1 from Piotr Trojanek <piotr.trojanek at gmail dot com> --- Created attachment 32117 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32117&action=edit Patch to solve the problem The attached patch solves the problem. I tested it with GNAT GPL 2013, but the file is against the latest FSF sources.