[Bug middle-end/34241] New: ICE in forward_propagate_into_cond

mueller at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 27 01:26:00 GMT 2007


inline void *operator  new (unsigned int, void *__p) throw ()
{
  return __p;
}
struct A
{
  A(int, double);
  inline explicit A (int pattern, bool cs)
  {
    new (this) A (pattern, double(cs));
  }
};
A test ()
{
  const A a (42, true);
}

(gdb) bt
#0  get_prop_source_stmt (name=0xb7c5d478, single_use_only=0 '\0',
single_use_p=0xbfdc018b "")
    at ../../gcc/tree-ssa-forwprop.c:221
#1  0x08328d58 in forward_propagate_into_cond (cond_expr=0xb7bca7d0,
stmt=0xb7bca7d0)
    at ../../gcc/tree-ssa-forwprop.c:378
#2  0x0832b5be in tree_ssa_forward_propagate_single_use_vars ()
    at ../../gcc/tree-ssa-forwprop.c:1021
#3  0x0824a963 in execute_one_pass (pass=0x8727e80) at ../../gcc/passes.c:1118
#4  0x0824aaff in execute_pass_list (pass=0x8727e80) at ../../gcc/passes.c:1171
#5  0x0824ab12 in execute_pass_list (pass=0x8727840) at ../../gcc/passes.c:1172
#6  0x0824aeec in execute_ipa_pass_list (pass=0x8727800) at
../../gcc/passes.c:856
#7  0x083e6d25 in cgraph_optimize () at ../../gcc/cgraphunit.c:1339
#8  0x0809198d in cp_write_global_declarations () at ../../gcc/cp/decl2.c:3442
#9  0x082bf163 in toplev_main (argc=4, argv=0xbfdc0424) at
../../gcc/toplev.c:1055
#10 0x08121b7f in main (argc=Cannot access memory at address 0x7
) at ../../gcc/main.c:35


the stmt where the def is NULL is:

 <ssa_name 0xb7c5d478 nothrow var <var_decl 0xb7bc9bb0 iftmp.0>
    version 3 in-free-list>


-- 
           Summary: ICE in forward_propagate_into_cond
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: critical
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mueller at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list