This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/8134: ICE in force_store_init_value on legal code
- From: georgeh at rentec dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: alvaro at rentec dot com
- Date: 3 Oct 2002 19:23:34 -0000
- Subject: c++/8134: ICE in force_store_init_value on legal code
- Reply-to: georgeh at rentec dot com
>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: