This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/4783: const array in a c++ class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]