This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: const static initializers versionitis
- To: Gianni Mariani <gianni_ at uluru dot mariani dot ws>
- Subject: Re: const static initializers versionitis
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Aug 2000 12:28:51 -0300
- Cc: gianni at mariani dot ws (Gianni Mariani), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org)
- Organization: GCC Team, Red Hat
- References: <200008221512.IAA02303@uluru.mariani.ws>
On Aug 22, 2000, Gianni Mariani <gianni_@uluru.mariani.ws> wrote:
> Why were forward declarations of const arrays removed from g++
> since 2.95.2 ?
`extern' is the keyword to forward-declare data in namespace scope.
> Isn't this a gcc bug?
Nope.
> The code still compiles fine in gcc so I would have some level
> of expectation that "const"ness should not change the behaviour
> of the compiler.
const POD must be initialized.
> Is there a compiler switch that reinstates the desired behaviour ?
-fpermissive, maybe?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me