public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* middle-end/8917: g++ 3.3: ICE in simplify_gen_subreg
@ 2002-12-12 11:36 snyder
  0 siblings, 0 replies; only message in thread
From: snyder @ 2002-12-12 11:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8917
>Category:       middle-end
>Synopsis:       g++ 3.3: ICE in simplify_gen_subreg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 12 11:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     scott snyder
>Release:        3.3 20021211 (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 --enable-languages=c,c++,f77 : (reconfigured)  : (reconfigured) 
>Description:

gcc crashes compiling the following source with -O1.

$ cc1plus -O1 x.cc
 void get_chunk_object(THandle<int>) void bar(THandle<int>&) void bar(THandle<int>&)
x.cc:9: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c:2673
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 tripping the assertion here (in simplify-rtx.c):

  /* Little bit of sanity checking.  */
  if (innermode == VOIDmode || outermode == VOIDmode
      || innermode == BLKmode || outermode == BLKmode)
    abort ();

because innermode == SImode.


>How-To-Repeat:

-------------------------
template <class T>
struct THandle 
{
  ~THandle();
};

inline void
get_chunk_object(THandle<int> pchk)
{
}

void bar (THandle<int>& h)
{
  get_chunk_object (h);
}
-------------------------

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-12 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-12 11:36 middle-end/8917: g++ 3.3: ICE in simplify_gen_subreg snyder

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).