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]

g++ ICE in flow.c:make_edge (g++ 2.96 20000320 on i686-pc-linux-gnu)



hi -

The current cvs version of g++ (2.96 20000320 on i686-pc-linux-gnu)
gets an ICE on the following input if -O2 is used:

--------------------------------------------------------------
void _S_initialize();

class locale
{
public:
  locale() throw()
  { _S_initialize (); }
};

void foo(const locale& __loc);

void print (const int&) 
{
  foo(locale());
}
--------------------------------------------------------------


$ ./cc1plus -O2 x.cc
void print (const int &)
x.cc:15: Internal compiler error.
x.cc:15: Please submit a full bug report.
x.cc:15: See <URL:http://www.gnu.org/software/gcc/bugs.html> for
x.cc:15: instructions.


Here's where it's crashing:

Program received signal SIGSEGV, Segmentation fault.
0x810b2bc in make_edge (edge_cache=0x0, src=0x8328440, dst=0x0, flags=28)
    at ../../egcs/gcc/flow.c:1099
1099      e->pred_next = dst->pred;
(gdb) where
#0  0x810b2bc in make_edge (edge_cache=0x0, src=0x8328440, dst=0x0, flags=28)
    at ../../egcs/gcc/flow.c:1099
#1  0x810b3bc in make_label_edge (edge_cache=0x0, src=0x8328440, 
    label=0x40128440, flags=28) at ../../egcs/gcc/flow.c:1131
#2  0x810b450 in make_eh_edge (edge_cache=0x0, eh_nest_info=0x8339ca0, 
    src=0x8328440, insn=0x40128480, region=9) at ../../egcs/gcc/flow.c:1151
#3  0x810af62 in make_edges (label_value_list=0x0)
    at ../../egcs/gcc/flow.c:1000
#4  0x810a1d1 in find_basic_blocks (f=0x40127180, nregs=35, file=0x0)
    at ../../egcs/gcc/flow.c:422
#5  0x80e32b0 in delete_null_pointer_checks (f=0x40127180)
    at ../../egcs/gcc/gcse.c:5074
#6  0x804cb0f in rest_of_compilation (decl=0x40124900)
    at ../../egcs/gcc/toplev.c:3088
#7  0x822752d in finish_function (lineno=15, flags=0)
    at ../../../egcs/gcc/cp/decl.c:14122
#8  0x8281b32 in expand_body (fn=0x40124900)
    at ../../../egcs/gcc/cp/semantics.c:2792
#9  0x825662b in yyparse () at parse.y:735
#10 0x804bccb in compile_file (name=0x4011b5c8 "x.cc")
    at ../../egcs/gcc/toplev.c:2451
#11 0x804f85d in main (argc=3, argv=0xbffffc34) at ../../egcs/gcc/toplev.c:4935


thanks,
sss

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