Created attachment 42734 [details] a valid program which does not compile The attached valid program (run `gnatchop script.all`) does not compile. Weirdly enough, it compiles if I add `subtype X is Script_Info'Class;` in the beginning of Resource.Parser package and replace all occurrences of Script_Info'Class in resource-parser.ads and resource-parser.adb with `X`. $ gcc --version gcc (Debian 7.2.0-16) 7.2.0 $ make gprbuild -p main.gpr Compile [Ada] resource-parser.adb resource-parser.ads:10:24: not subtype conformant with operation inherited at line 7 resource-parser.ads:10:24: return type does not match