This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17722] New: ICE in variable sized array
- From: "vogt at itwm dot fraunhofer dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2004 12:42:55 -0000
- Subject: [Bug c++/17722] New: ICE in variable sized array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hello,
I dont know if this code is supposed to compile, but gcc 3.3.1 and gcc 3.3.3 on
SuSE 9.0 and
SuSE 9.1 stops with an internal compiler error:
class setS {
public:
setS( short Ni, short Nj, short Nk ) {
unsigned char S[Ni][Nj][Nk];
for( short i=0; i<Ni; ++i )
for( short j=0; j<Nj; ++j )
for( short k=0; k<Nk; ++k )
S[i][j][k] = '1';
return;
};
protected:
private:
};
int main()
{
short I=32;
short J=32;
short K=32;
setS( I, J, K );
return(0);
}
--
Summary: ICE in variable sized array
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vogt at itwm dot fraunhofer dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17722