public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: georgeh@rentec.com
To: gcc-gnats@gcc.gnu.org
Cc: alvaro@rentec.com
Subject: c++/8134: ICE in force_store_init_value on legal code
Date: Thu, 03 Oct 2002 12:26:00 -0000	[thread overview]
Message-ID: <20021003192334.9570.qmail@sources.redhat.com> (raw)


>Number:         8134
>Category:       c++
>Synopsis:       ICE in force_store_init_value on legal code
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 03 12:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     George Heintzelman (georgeh@rentec.com
>Release:        gcc 3.2
>Organization:
>Environment:
System: Linux monsterd01 2.4.18-rmap12h #1 SMP Mon May 13 14:01:21 EDT 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-3.2/configure --disable-nls --enable-languages=c,c++,f77 --disable-libgcj --disable-shared --prefix=/usr/local/products/gcc/3.2
>Description:
Compiling the following legal code, I get:
/usr/local/products/gcc/3.2/bin/g++ -c gcc-ice-memptr.C 
gcc-ice-memptr.C:20: Internal compiler error in force_store_init_value, at 
   cp/typeck2.c:443

gcc-ice-memptr.C:
#include <list>

template <class T>
class string2 {
private:
  T default_value; 
  std::list<int> l;
public:
  template <class It>
  string2(const T &_default_value, It begin, It end) {
  }
};

class X {
};

typedef int X::* field_type;
int table[1] = {0};

string2<field_type> s2vh(0,table, table + 1);

>How-To-Repeat:
Repeated on Solaris 2.8 installation of g++ 3.2 as well.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


             reply	other threads:[~2002-10-03 19:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-03 12:26 georgeh [this message]
2002-10-04  8:10 lerdsuwa
2002-10-08 14:36 Pop Sébastian
2002-10-08 15:06 Gabriel Dos Reis
2002-10-08 15:06 Pop Sébastian
2002-10-09 10:56 Pop Sébastian
2002-10-16 12:40 mmitchel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021003192334.9570.qmail@sources.redhat.com \
    --to=georgeh@rentec.com \
    --cc=alvaro@rentec.com \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).