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: const without initor wrongly permitted ?


David C Binderman <dcb@pncl.co.uk> writes:

> My understanding is that the code should not compile, since the contents
> of the array are const, and no initialiser is provided.

> void f() { const int var [ 10 ]; }

Thanks, installed.

May I ask you a favour?  If you could post test-cases in the format
expected by the testing framework, installing them in the testsuite
would be much easier.  It's not hard; just look in the testsuite dir
for examples.  Thanks in advance.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil


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