I get the following gnat regression. It looks a lot like PR26827 but that one is with gcc-4.1 while mine works with 4.1 and fails with 4.2. Below is a reduced testcase based on the code from the application "ghdl" that is failing.
(sid)101:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -c -g types.ads +===========================GNAT BUG DETECTED==============================+ | 4.2.0 20060721 (experimental) (ia64-unknown-linux-gnu) GCC error: | | in splice_child_die, at dwarf2out.c:5513 | | Error detected at interfac.ads:47:49 | | 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. types.ads compilation abandoned zsh: exit 1 /usr/lib/gcc-snapshot/bin/gcc -c -g types.ads (sid)102:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -c types.ads (sid)103:[EMAIL PROTECTED]: ~] gcc-4.1 -c -g types.ads (sid)104:[EMAIL PROTECTED]: ~] cat types.ads with Interfaces; use Interfaces; package Types is type Mode_Type is (Mode_B2); type Value_Union (Mode : Mode_Type := Mode_B2) is record case Mode is when Mode_B2 => B2 : Integer_32; end case; end record; pragma Unchecked_Union (Value_Union); end Types; -- Summary: [4.2 regression] ICE in splice_child_die, at dwarf2out.c:5513 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tbm at cyrius dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28591