const without initor wrongly permitted ?

Alexandre Oliva oliva@dcc.unicamp.br
Mon Oct 12 03:00:00 GMT 1998


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



More information about the Gcc-bugs mailing list