This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2233: ice instead of "storage size of x isn't constant"
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2233: ice instead of "storage size of x isn't constant"
- From: agno at ai dot sri dot com
- Date: 8 Mar 2001 22:50:33 -0000
- Reply-To: agno at ai dot sri dot com
>Number: 2233
>Category: c++
>Synopsis: ice instead of "storage size of x isn't constant"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu Mar 08 14:56:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Andrew Agno
>Release: gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
>Description:
src/Bad1User.cpp: In function `int main(int, char **)':
src/Bad1User.cpp:6: Internal compiler error in `find_function_data', at function.c:542
>How-To-Repeat:
Need the following two files, then run
g++ -c Bad1User.cpp -o Bad1User.o
----------Bad1.h--------------------->
class Bad1
{
public:
static const int SZ;
char buf[SZ];
}
;
------------Bad1User.cpp--------------->
#include "Bad1.h"
#include <iostream>
int main(int argc, char *argv[])
{
static Bad1 b1;
cout << "Hello, world" << endl;
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: