This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: const without initor wrongly permitted ?
- To: David C Binderman <dcb at pncl dot co dot uk>
- Subject: Re: const without initor wrongly permitted ?
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Oct 1998 03:50:32 -200
- Cc: egcs-bugs at cygnus dot com
- References: <199810111725.SAA08150@fm215.facility.pipex.com>
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