[Bug c++/15983] New: ICE in replace_ssa_names, at tree-ssa-copy.c:73

gcc-bugzilla at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jun 14 08:50:00 GMT 2004


g++ 3.5 crashes when compiling the source below with optimization on:

$ gcc -c -O x.cc
x.cc: In function `void __static_initialization_and_destruction_0(int, int)':
x.cc:17: internal compiler error: in replace_ssa_names, at tree-ssa-copy.c:73
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$

Here's where it's crashing:

static void
replace_ssa_names (tree *op_p,
		   tree var,
		   bool for_propagation ATTRIBUTE_UNUSED)
{
#if defined ENABLE_CHECKING
  if (for_propagation && !may_propagate_copy (*op_p, var))
    abort ();
#endif

Environment:
System: Linux karma 2.6.6 #15 Thu May 13 15:07:54 EDT 2004 i686 i686 i386 GNU/Linux
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: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95

How-To-Repeat:

Compile with optimization:

--------------------------------------------
struct new_allocator
{
  ~new_allocator();
};

struct allocator: public new_allocator {};

struct string
{
  string(const char* __s, const allocator& __a = allocator());
};

struct HepObj
{
  HepObj(int mgr=0) {new string(mgr ? "" : string(""));}
};
HepObj corpse;
--------------------------------------------
------- Additional Comments From snyder at fnal dot gov  2004-06-14 08:50 -------
Fix:
	<how to correct or work around the problem, if known (multiple lines)>

-- 
           Summary: ICE in replace_ssa_names, at tree-ssa-copy.c:73
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snyder at fnal dot gov
                CC: gcc-bugs 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=15983



More information about the Gcc-bugs mailing list