This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

debug/9422: g++ 3.4: ICE in gen_decl_die


>Number:         9422
>Category:       debug
>Synopsis:       <synopsis of the problem (one line)>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 23 17:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     scott snyder
>Release:        3.4 20030123 (experimental)
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 unknown
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long : (reconfigured) 
>Description:

gcc crashes compiling the following code if -g is used:

$ ./cc1plus -g x.cc
 bool is_nan_aux1() bool is_nan_aux1()
x.cc:5: internal compiler error: in gen_decl_die, at dwarf2out.c:12117
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$


It's dying at this switch in dwarf2out.c:

static void
gen_decl_die (decl, context_die)
     tree decl;
     dw_die_ref context_die;
{
  tree origin;

  if (DECL_P (decl) && DECL_IGNORED_P (decl))
    return;

  switch (TREE_CODE (decl))
    {


Here is decl when it dies:

(gdb) call debug_tree (decl)
 <alias_decl 0x4005ff50 x
    type <real_type 0x40024d90 double type_6 DF
        size <integer_cst 0x4001a920 constant 64>
        unit size <integer_cst 0x4001ab40 constant 8>
        align 64 symtab 0 alias set -1 precision 64
        pointer_to_this <pointer_type 0x4002b070>>
    external VOID file x.cc line 3
    align 1 context <function_decl 0x40059cb0 is_nan_aux1> initial <component_ref 0x40028c40> chain <var_decl 0x4005fee0>>


ALIAS_DECL isn't one of the cases handled in the switch...



>How-To-Repeat:

-----------------
bool is_nan_aux1()
{
  union { double x; };
  return true;
}
-----------------

>Fix:
	<how to correct or work around the problem, if known (multiple lines)>
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]