public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/32286]  New: ICE in dwarf2out with -g: sees Ada f-e unconstrained_array_type node
@ 2007-06-11 15:38 baldrick at gcc dot gnu dot org
  2007-06-11 20:17 ` [Bug ada/32286] [4.2/4.3 Regression] " laurent at guerby dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: baldrick at gcc dot gnu dot org @ 2007-06-11 15:38 UTC (permalink / raw)
  To: gcc-bugs

The following occurs with svn head and GNAT GPL 2007.

$ gcc -c -g -gnat05 e.adb
+===========================GNAT BUG DETECTED==============================+
| 4.3.0 20070611 (experimental) (i686-pc-linux-gnu) GCC error:             |
| in gen_type_die_with_usage, at dwarf2out.c:12921                         |
| Error detected around e.adb:8                                            |
...

This occurs because a node type that should be internal to the
Ada f-e (unconstrained_array_type) has made its way as far as
gen_type_die_with_usage in dwarf2out.c.

Testcase:

package E is
   type T (S : access String) is null record;
   procedure P (X : T);
end;
package body E is
   procedure P (X : T) is
      S : String renames X.S.all;
      F : String (S'Range);
      for F'Address use S (S'First)'Address;
   begin
      null;
   end;
end;


-- 
           Summary: ICE in dwarf2out with -g: sees Ada f-e
                    unconstrained_array_type node
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: baldrick at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32286


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-12-08  9:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-11 15:38 [Bug ada/32286] New: ICE in dwarf2out with -g: sees Ada f-e unconstrained_array_type node baldrick at gcc dot gnu dot org
2007-06-11 20:17 ` [Bug ada/32286] [4.2/4.3 Regression] " laurent at guerby dot net
2007-06-30  9:17 ` pinskia at gcc dot gnu dot org
2007-07-04  3:26 ` mmitchel at gcc dot gnu dot org
2007-12-07 12:38 ` sam at gcc dot gnu dot org
2007-12-07 17:44 ` laurent at guerby dot net
2007-12-08  9:53 ` baldrick at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).