This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4783: const array in a c++ class
- To: anon at adinet dot com dot uy, dacap at users dot sourceforge dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c++/4783: const array in a c++ class
- From: rodrigc at gcc dot gnu dot org
- Date: 4 Nov 2001 23:37:52 -0000
Synopsis: const array in a c++ class
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Nov 4 15:37:25 2001
State-Changed-Why:
In gcc 3.0.2, this compiler crash does not occur.
If you compile your code with more warning options:
g++ -Wall -pedantic myfile.cpp
myfile.cpp:5: warning: ISO C++ forbids variable-size array `array'
myfile.cpp:5: size of member `array' is not constant
myfile.cpp: In function `int main()':
myfile.cpp:11: warning: unused variable `clase a'
You need to find another way to do what you want and
still have valid code.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4783&database=gcc