foo.ads contained a bad comment (starting %- instead of --). Compiling foo-main.adb resulted in this bomb:
$ gnatmake -c -u -f foo-main.adb gcc -c foo-main.adb +===========================GNAT BUG DETECTED==============================+ | 4.3.3 (i386-apple-darwin9.6.0) Assert_Failure sinfo.adb:2728 | | Error detected at foo.ads:3:1 | | 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 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. list may be incomplete compilation abandoned gnatmake: "foo-main.adb" compilation error $ gcc -v Using built-in specs. Target: i386-apple-darwin9.6.0 Configured with: ../gcc-4.3.3/configure --prefix=/opt/gcc-4.3.3 --with-gmp=/opt/gnu --with-mpfr=/opt/gnu --disable-multilib --enable-languages=c,ada Thread model: posix gcc version 4.3.3 (GCC) -- Summary: Malformed parent spec causes bomb in child compilation Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: simon at pushface dot org GCC build triplet: i386-apple-darwin9.6.0 GCC host triplet: i386-apple-darwin9.6.0 GCC target triplet: i386-apple-darwin9.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39515